<html>
<head>
<title>tianjia.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.s0 { color: #000000;}
.s1 { color: #0000ff; font-weight: bold;}
.s2 { color: #000000;}
.s3 { color: #000080; font-weight: bold;}
.s4 { color: #008000; font-weight: bold;}
.s5 { color: #000080; font-weight: bold;}
.s6 { color: #0000ff; font-weight: bold;}
.s7 { color: #008000; font-weight: bold;}
.s8 { color: #0000ff;}
.s9 { color: #808080; font-style: italic;}
.ln { color: #999999; font-weight: normal; font-style: normal; }
</style>
</head>
<body bgcolor="#ffffff">
<table CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#c0c0c0" >
<tr><td><center>
<font face="Arial, Helvetica" color="#000000">
tianjia.html</font>
</center></td></tr></table>
<pre><a name="l1"><span class="ln">1    </span></a>&lt;!DOCTYPE <span class="s1">html</span>&gt;
<a name="l2"><span class="ln">2    </span></a>&lt;<span class="s3">html </span><span class="s1">lang=</span><span class="s4">&quot;zh&quot; </span><span class="s1">xmlns:th=</span><span class="s4">&quot;http://www.thymeleaf.org&quot;</span>&gt;
<a name="l3"><span class="ln">3    </span></a>&lt;<span class="s3">head</span>&gt;
<a name="l4"><span class="ln">4    </span></a>    &lt;<span class="s3">th:block </span><span class="s1">th:include=</span><span class="s4">&quot;include :: header('系统管理员操作界面')&quot;</span>/&gt;
<a name="l5"><span class="ln">5    </span></a>    &lt;<span class="s3">link </span><span class="s1">th:href=</span><span class="s4">&quot;@{/ruoyi/css/font-awesome.css}&quot; </span><span class="s1">rel=</span><span class="s4">&quot;stylesheet&quot;</span>/&gt;
<a name="l6"><span class="ln">6    </span></a>    &lt;<span class="s3">link </span><span class="s1">th:href=</span><span class="s4">&quot;@{/ruoyi/css/jquery-confirm.min.css}&quot; </span><span class="s1">rel=</span><span class="s4">&quot;stylesheet&quot;</span>/&gt;
<a name="l7"><span class="ln">7    </span></a>&lt;/<span class="s3">head</span>&gt;
<a name="l8"><span class="ln">8    </span></a>&lt;<span class="s3">style </span><span class="s1">type=</span><span class="s4">&quot;text/css&quot;</span>&gt;
<a name="l9"><span class="ln">9    </span></a>    .<span class="s5">table </span>{
<a name="l10"><span class="ln">10   </span></a>        <span class="s6">table-layout</span>: <span class="s7">fixed</span>;
<a name="l11"><span class="ln">11   </span></a>    }
<a name="l12"><span class="ln">12   </span></a>    <span class="s5">#macdz_id </span>{
<a name="l13"><span class="ln">13   </span></a>        <span class="s6">width</span>: <span class="s8">80</span>%;
<a name="l14"><span class="ln">14   </span></a>        <span class="s6">margin</span>: -<span class="s8">30</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l15"><span class="ln">15   </span></a>        <span class="s6">height</span>: <span class="s8">32</span><span class="s7">px</span>;
<a name="l16"><span class="ln">16   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l17"><span class="ln">17   </span></a>        <span class="s6">border</span>: <span class="s7">none</span>;
<a name="l18"><span class="ln">18   </span></a>        <span class="s6">border-bottom</span>: <span class="s8">1</span><span class="s7">px solid </span><span class="s5">#e5e6e7</span>;
<a name="l19"><span class="ln">19   </span></a>    }
<a name="l20"><span class="ln">20   </span></a>    <span class="s5">#macdz_id </span>&gt; <span class="s5">input </span>{
<a name="l21"><span class="ln">21   </span></a>        <span class="s6">height</span>: <span class="s8">21</span><span class="s7">px</span>;
<a name="l22"><span class="ln">22   </span></a>        <span class="s6">width</span>: <span class="s8">26.3</span><span class="s7">px</span>;
<a name="l23"><span class="ln">23   </span></a>        <span class="s6">border</span>: <span class="s7">none</span>;
<a name="l24"><span class="ln">24   </span></a>        <span class="s6">text-align</span>: <span class="s7">center</span>;
<a name="l25"><span class="ln">25   </span></a>    }
<a name="l26"><span class="ln">26   </span></a>    <span class="s5">#macdz_id </span>&gt; <span class="s5">input</span>[<span class="s5">readonly</span>] {
<a name="l27"><span class="ln">27   </span></a>        <span class="s6">background-color</span>: <span class="s5">#EEEEEE</span>;
<a name="l28"><span class="ln">28   </span></a>    }
<a name="l29"><span class="ln">29   </span></a>    <span class="s5">#ipdz_id </span>{
<a name="l30"><span class="ln">30   </span></a>        <span class="s6">width</span>: <span class="s8">80</span>%;
<a name="l31"><span class="ln">31   </span></a>        <span class="s6">margin</span>: -<span class="s8">30</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l32"><span class="ln">32   </span></a>        <span class="s6">height</span>: <span class="s8">32</span><span class="s7">px</span>;
<a name="l33"><span class="ln">33   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l34"><span class="ln">34   </span></a>        <span class="s6">border</span>: <span class="s7">none</span>;
<a name="l35"><span class="ln">35   </span></a>        <span class="s6">border-bottom</span>: <span class="s8">1</span><span class="s7">px solid </span><span class="s5">#e5e6e7</span>;
<a name="l36"><span class="ln">36   </span></a>    }
<a name="l37"><span class="ln">37   </span></a>    <span class="s5">#ipdz_id </span>&gt; <span class="s5">input </span>{
<a name="l38"><span class="ln">38   </span></a>        <span class="s6">height</span>: <span class="s8">21</span><span class="s7">px</span>;
<a name="l39"><span class="ln">39   </span></a>        <span class="s6">width</span>: <span class="s8">32.3</span><span class="s7">px</span>;
<a name="l40"><span class="ln">40   </span></a>        <span class="s6">border</span>: <span class="s7">none</span>;
<a name="l41"><span class="ln">41   </span></a>        <span class="s6">text-align</span>: <span class="s7">center</span>;
<a name="l42"><span class="ln">42   </span></a>    }
<a name="l43"><span class="ln">43   </span></a>    <span class="s5">#ipdz_id </span>&gt; <span class="s5">input</span>[<span class="s5">readonly</span>] {
<a name="l44"><span class="ln">44   </span></a>        <span class="s6">background-color</span>: <span class="s5">#EEEEEE</span>;
<a name="l45"><span class="ln">45   </span></a>    }
<a name="l46"><span class="ln">46   </span></a>    .<span class="s5">qbinput</span>{
<a name="l47"><span class="ln">47   </span></a>        <span class="s6">margin</span>: -<span class="s8">10</span>% <span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l48"><span class="ln">48   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l49"><span class="ln">49   </span></a>        <span class="s6">width</span>: <span class="s8">80</span>%;
<a name="l50"><span class="ln">50   </span></a>    }
<a name="l51"><span class="ln">51   </span></a>
<a name="l52"><span class="ln">52   </span></a>    .<span class="s5">bminput</span>{
<a name="l53"><span class="ln">53   </span></a>        <span class="s6">margin</span>: -<span class="s8">10</span>% <span class="s8">31</span>% <span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l54"><span class="ln">54   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l55"><span class="ln">55   </span></a>        <span class="s6">width</span>: <span class="s8">49</span>%;
<a name="l56"><span class="ln">56   </span></a>    }
<a name="l57"><span class="ln">57   </span></a>    .<span class="s5">shiyrinput</span>{
<a name="l58"><span class="ln">58   </span></a>        <span class="s6">margin</span>: -<span class="s8">10</span>% <span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l59"><span class="ln">59   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l60"><span class="ln">60   </span></a>        <span class="s6">width</span>: <span class="s8">30</span>%;
<a name="l61"><span class="ln">61   </span></a>    }
<a name="l62"><span class="ln">62   </span></a>
<a name="l63"><span class="ln">63   </span></a>    .<span class="s5">labkz</span>{
<a name="l64"><span class="ln">64   </span></a>        <span class="s6">margin-top</span>: <span class="s8">10</span><span class="s7">px</span>;
<a name="l65"><span class="ln">65   </span></a>        <span class="s6">float</span>: <span class="s7">left</span>;
<a name="l66"><span class="ln">66   </span></a>    }
<a name="l67"><span class="ln">67   </span></a>
<a name="l68"><span class="ln">68   </span></a>    .<span class="s5">xsqinputk</span>{
<a name="l69"><span class="ln">69   </span></a>        <span class="s6">margin</span>: -<span class="s8">10</span>% <span class="s8">20</span>% <span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l70"><span class="ln">70   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l71"><span class="ln">71   </span></a>        <span class="s6">width</span>: <span class="s8">60</span>%;
<a name="l72"><span class="ln">72   </span></a>    }
<a name="l73"><span class="ln">73   </span></a>    .<span class="s5">ypinputk</span>{
<a name="l74"><span class="ln">74   </span></a>        <span class="s6">margin</span>: -<span class="s8">10</span>% <span class="s8">20</span>% <span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l75"><span class="ln">75   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l76"><span class="ln">76   </span></a>        <span class="s6">width</span>: <span class="s8">60</span>%;
<a name="l77"><span class="ln">77   </span></a>    }
<a name="l78"><span class="ln">78   </span></a>    .<span class="s5">scsbbhinput</span>{
<a name="l79"><span class="ln">79   </span></a>        <span class="s6">margin</span>: -<span class="s8">10</span>% <span class="s8">34</span>% <span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l80"><span class="ln">80   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l81"><span class="ln">81   </span></a>        <span class="s6">width</span>: <span class="s8">46</span>%;
<a name="l82"><span class="ln">82   </span></a>    }
<a name="l83"><span class="ln">83   </span></a>    .<span class="s5">scbsbhdiv</span>{
<a name="l84"><span class="ln">84   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;<span class="s6">margin-top</span>: -<span class="s8">10</span>%
<a name="l85"><span class="ln">85   </span></a>    }
<a name="l86"><span class="ln">86   </span></a>    .<span class="s5">fddiv</span>{
<a name="l87"><span class="ln">87   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l88"><span class="ln">88   </span></a>        <span class="s6">margin</span>: -<span class="s8">10</span>% <span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l89"><span class="ln">89   </span></a>    }
<a name="l90"><span class="ln">90   </span></a>    .<span class="s5">ypdiv</span>{
<a name="l91"><span class="ln">91   </span></a>        <span class="s6">float</span>: <span class="s7">right</span>;
<a name="l92"><span class="ln">92   </span></a>        <span class="s6">margin</span>: -<span class="s8">10</span>% <span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px </span><span class="s8">0</span><span class="s7">px</span>;
<a name="l93"><span class="ln">93   </span></a>    }
<a name="l94"><span class="ln">94   </span></a>    .<span class="s5">gmrqdiv</span>{
<a name="l95"><span class="ln">95   </span></a>        <span class="s6">margin-right</span>: <span class="s8">4</span>%; <span class="s6">width</span>:<span class="s8">72</span>%;<span class="s6">float</span>: <span class="s7">right</span>
<a name="l96"><span class="ln">96   </span></a>    }
<a name="l97"><span class="ln">97   </span></a>    .<span class="s5">rowdiv</span>{
<a name="l98"><span class="ln">98   </span></a>        <span class="s6">margin-top</span>: -<span class="s8">2</span>%;
<a name="l99"><span class="ln">99   </span></a>    }
<a name="l100"><span class="ln">100  </span></a>&lt;/<span class="s3">style</span>&gt;
<a name="l101"><span class="ln">101  </span></a>&lt;<span class="s3">body </span><span class="s1">class=</span><span class="s4">&quot;gray-bg&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">width</span>: <span class="s8">95</span>%;<span class="s6">margin</span>: <span class="s8">0</span><span class="s7">px auto</span><span class="s4">&quot;</span>&gt;
<a name="l102"><span class="ln">102  </span></a>&lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;container-div&quot;</span>&gt;
<a name="l103"><span class="ln">103  </span></a>    &lt;<span class="s3">form </span><span class="s1">id=</span><span class="s4">&quot;form-sb-add&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-horizontal&quot;</span>&gt;
<a name="l104"><span class="ln">104  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row&quot;</span>&gt;
<a name="l105"><span class="ln">105  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l106"><span class="ln">106  </span></a>                &lt;<span class="s3">h1</span>&gt;&lt;<span class="s3">strong</span>&gt;添加设备&lt;/<span class="s3">strong</span>&gt;&lt;/<span class="s3">h1</span>&gt;
<a name="l107"><span class="ln">107  </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l108"><span class="ln">108  </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l109"><span class="ln">109  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l110"><span class="ln">110  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l111"><span class="ln">111  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;设备类型&lt;/<span class="s3">label</span>&gt;
<a name="l112"><span class="ln">112  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2&quot;</span>&gt;
<a name="l113"><span class="ln">113  </span></a>                    &lt;<span class="s3">select </span><span class="s1">name=</span><span class="s4">&quot;sbbh_sel&quot; </span><span class="s1">id=</span><span class="s4">&quot;sbbh_sel&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control qbinput&quot; </span><span class="s1">onchange=</span><span class="s4">&quot;</span>sbbhchange()<span class="s4">&quot;</span>&gt;
<a name="l114"><span class="ln">114  </span></a>                    &lt;/<span class="s3">select</span>&gt;
<a name="l115"><span class="ln">115  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot; </span><span class="s1">id=</span><span class="s4">&quot;maxbh&quot; </span><span class="s1">name=</span><span class="s4">&quot;maxbh&quot;</span>&gt;
<a name="l116"><span class="ln">116  </span></a>                &lt;/<span class="s3">div</span>&gt; &lt;/<span class="s3">div</span>&gt;
<a name="l117"><span class="ln">117  </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l118"><span class="ln">118  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;&lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l119"><span class="ln">119  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;设备名称&lt;/<span class="s3">label</span>&gt;
<a name="l120"><span class="ln">120  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2&quot;</span>&gt;
<a name="l121"><span class="ln">121  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;sbbh&quot; </span><span class="s1">placeholder=</span><span class="s4">&quot;请点击生成设备编号&quot; </span><span class="s1">id=</span><span class="s4">&quot;sbbh_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control scsbbhinput&quot;</span>
<a name="l122"><span class="ln">122  </span></a>                           <span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l123"><span class="ln">123  </span></a>                           <span class="s1">readonly=</span><span class="s4">&quot;readonly&quot;</span>
<a name="l124"><span class="ln">124  </span></a>                           <span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">background-color</span>: <span class="s5">#FFFFFF</span><span class="s4">&quot;</span>
<a name="l125"><span class="ln">125  </span></a>                           <span class="s1">required=</span><span class="s4">&quot;required&quot;</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l126"><span class="ln">126  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">display</span>: <span class="s7">none</span><span class="s4">&quot;</span>&gt;
<a name="l127"><span class="ln">127  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;sbmc&quot; </span><span class="s1">id=</span><span class="s4">&quot;sbmc_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control qbinput&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l128"><span class="ln">128  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请输入设备名称&quot;</span>
<a name="l129"><span class="ln">129  </span></a>                           <span class="s1">readonly=</span><span class="s4">&quot;readonly&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">background-color</span>: <span class="s5">#ffffff</span><span class="s4">&quot;</span>&gt;
<a name="l130"><span class="ln">130  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot; </span><span class="s1">id=</span><span class="s4">&quot;sbmc_option&quot;</span>&gt;
<a name="l131"><span class="ln">131  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot; </span><span class="s1">id=</span><span class="s4">&quot;sbmc_index&quot;</span>&gt;
<a name="l132"><span class="ln">132  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot; </span><span class="s1">id=</span><span class="s4">&quot;gsidfrotj&quot; </span><span class="s1">name=</span><span class="s4">&quot;gsid&quot;</span>&gt;
<a name="l133"><span class="ln">133  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l134"><span class="ln">134  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l135"><span class="ln">135  </span></a>                    &lt;<span class="s3">a </span><span class="s1">class=</span><span class="s4">&quot;btn btn-primary btn-rounded btn-sm scbsbhdiv&quot; </span><span class="s1">id=</span><span class="s4">&quot;creat_sbbh_btn&quot;</span>&gt;
<a name="l136"><span class="ln">136  </span></a>                        &lt;<span class="s3">i </span><span class="s1">class=</span><span class="s4">&quot;fa fa-search&quot;</span>&gt;&lt;/<span class="s3">i</span>&gt;生成设备编号&lt;/<span class="s3">a</span>&gt;
<a name="l137"><span class="ln">137  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l138"><span class="ln">138  </span></a>                <span class="s9">&lt;!--&lt;div class=&quot;col-sm-1&quot;&gt;&lt;img src=&quot;/img/700.gif&quot; style=&quot;margin-left: -25px;width: 200%&quot;&gt;&lt;/div&gt;--&gt;</span>
<a name="l139"><span class="ln">139  </span></a>                &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l140"><span class="ln">140  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l141"><span class="ln">141  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l142"><span class="ln">142  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;品牌型号&lt;/<span class="s3">label</span>&gt;
<a name="l143"><span class="ln">143  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2&quot;</span>&gt;
<a name="l144"><span class="ln">144  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;guige&quot; </span><span class="s1">id=</span><span class="s4">&quot;guige_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control qbinput&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l145"><span class="ln">145  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请输入品牌型号&quot; </span><span class="s1">required=</span><span class="s4">&quot;required&quot;</span>&gt;
<a name="l146"><span class="ln">146  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l147"><span class="ln">147  </span></a>            &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l148"><span class="ln">148  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;&lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l149"><span class="ln">149  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;生产厂家&lt;/<span class="s3">label</span>&gt;
<a name="l150"><span class="ln">150  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2&quot;</span>&gt;
<a name="l151"><span class="ln">151  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;shccj&quot; </span><span class="s1">id=</span><span class="s4">&quot;shccj_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control qbinput&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l152"><span class="ln">152  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请输入生产厂家&quot;</span>&gt;
<a name="l153"><span class="ln">153  </span></a>                &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt; &lt;/<span class="s3">div</span>&gt;
<a name="l154"><span class="ln">154  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;&lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l155"><span class="ln">155  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;购买日期&lt;/<span class="s3">label</span>&gt;
<a name="l156"><span class="ln">156  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 input-group date gmrqdiv&quot;</span>&gt;
<a name="l157"><span class="ln">157  </span></a>                    &lt;<span class="s3">span </span><span class="s1">class=</span><span class="s4">&quot;input-group-addon&quot;</span>&gt;&lt;<span class="s3">i </span><span class="s1">class=</span><span class="s4">&quot;fa fa-calendar&quot;</span>&gt;&lt;/<span class="s3">i</span>&gt;&lt;/<span class="s3">span</span>&gt;
<a name="l158"><span class="ln">158  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;gmrq&quot; </span><span class="s1">id=</span><span class="s4">&quot;gmrq_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l159"><span class="ln">159  </span></a>                           <span class="s1">readonly=</span><span class="s4">&quot;readonly&quot; </span><span class="s1">placeholder=</span><span class="s4">&quot;yyyy-MM-dd&quot;</span>
<a name="l160"><span class="ln">160  </span></a>                           <span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">background-color</span>: <span class="s5">#FFFFFF</span>;<span class="s4">&quot;</span>&gt;
<a name="l161"><span class="ln">161  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l162"><span class="ln">162  </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l163"><span class="ln">163  </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l164"><span class="ln">164  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l165"><span class="ln">165  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l166"><span class="ln">166  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;主板型号&lt;/<span class="s3">label</span>&gt;
<a name="l167"><span class="ln">167  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l168"><span class="ln">168  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;zbxh&quot; </span><span class="s1">id=</span><span class="s4">&quot;zbxh_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control qbinput&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l169"><span class="ln">169  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请输入主板型号&quot;</span>&gt;
<a name="l170"><span class="ln">170  </span></a>                &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt; &lt;/<span class="s3">div</span>&gt;
<a name="l171"><span class="ln">171  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l172"><span class="ln">172  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l173"><span class="ln">173  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;CPU型号&lt;/<span class="s3">label</span>&gt;
<a name="l174"><span class="ln">174  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l175"><span class="ln">175  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;cpuxh&quot; </span><span class="s1">id=</span><span class="s4">&quot;cpuxh_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control qbinput&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l176"><span class="ln">176  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请输入CPU型号&quot;</span>&gt;
<a name="l177"><span class="ln">177  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l178"><span class="ln">178  </span></a>            &lt;/<span class="s3">div</span>&gt; &lt;/<span class="s3">div</span>&gt;
<a name="l179"><span class="ln">179  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l180"><span class="ln">180  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l181"><span class="ln">181  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;显卡型号&lt;/<span class="s3">label</span>&gt;
<a name="l182"><span class="ln">182  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l183"><span class="ln">183  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;xkxh&quot; </span><span class="s1">id=</span><span class="s4">&quot;xkxh_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control qbinput&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l184"><span class="ln">184  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请输入显卡型号&quot;</span>&gt;
<a name="l185"><span class="ln">185  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l186"><span class="ln">186  </span></a>            &lt;/<span class="s3">div</span>&gt; &lt;/<span class="s3">div</span>&gt;
<a name="l187"><span class="ln">187  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l188"><span class="ln">188  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l189"><span class="ln">189  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;内存大小&lt;/<span class="s3">label</span>&gt;
<a name="l190"><span class="ln">190  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l191"><span class="ln">191  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;ncggdx&quot; </span><span class="s1">id=</span><span class="s4">&quot;ncggdx_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control qbinput&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l192"><span class="ln">192  </span></a>                           <span class="s1">onkeyup=</span><span class="s4">&quot;</span><span class="s5">if</span>(<span class="s5">this</span>.value.length==<span class="s8">1</span>){<span class="s5">this</span>.value=<span class="s5">this</span>.value.replace(<span class="s8">/[^1-9]/g</span>,<span class="s7">''</span>)}<span class="s5">else</span>{<span class="s5">this</span>.value=<span class="s5">this</span>.value.replace(<span class="s8">/\D/g</span>,<span class="s7">''</span>)}<span class="s4">&quot;</span>
<a name="l193"><span class="ln">193  </span></a>                           <span class="s1">onafterpaste=</span><span class="s4">&quot;if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}&quot;</span>
<a name="l194"><span class="ln">194  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请输入内存大小只能输入数字&quot;</span>&gt;
<a name="l195"><span class="ln">195  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l196"><span class="ln">196  </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l197"><span class="ln">197  </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l198"><span class="ln">198  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l199"><span class="ln">199  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l200"><span class="ln">200  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;IP<span class="s6">&amp;nbsp;&amp;nbsp;</span>地<span class="s6">&amp;nbsp;&amp;nbsp;</span>址&lt;/<span class="s3">label</span>&gt;
<a name="l201"><span class="ln">201  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot; </span><span class="s1">id=</span><span class="s4">&quot;ipdz_id&quot; </span>&gt;
<a name="l202"><span class="ln">202  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">id=</span><span class="s4">&quot;ipdz1&quot; </span><span class="s1">class=</span><span class="s4">&quot;ip1&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;3&quot;</span>&gt;.&lt;<span class="s3">input</span>
<a name="l203"><span class="ln">203  </span></a>                        <span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">id=</span><span class="s4">&quot;ipdz2&quot; </span><span class="s1">class=</span><span class="s4">&quot;ip2&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;3&quot;</span>&gt;.&lt;<span class="s3">input</span>
<a name="l204"><span class="ln">204  </span></a>                        <span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">id=</span><span class="s4">&quot;ipdz3&quot; </span><span class="s1">class=</span><span class="s4">&quot;ip3&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;3&quot;</span>&gt;.&lt;<span class="s3">input</span>
<a name="l205"><span class="ln">205  </span></a>                        <span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">id=</span><span class="s4">&quot;ipdz4&quot; </span><span class="s1">class=</span><span class="s4">&quot;ip4&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;3&quot;</span>&gt;
<a name="l206"><span class="ln">206  </span></a>                &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l207"><span class="ln">207  </span></a>                &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot; </span><span class="s1">name=</span><span class="s4">&quot;ipdz&quot; </span><span class="s1">id=</span><span class="s4">&quot;ip&quot;</span>&gt;
<a name="l208"><span class="ln">208  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l209"><span class="ln">209  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l210"><span class="ln">210  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;MAC地址&lt;/<span class="s3">label</span>&gt;
<a name="l211"><span class="ln">211  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot; </span><span class="s1">id=</span><span class="s4">&quot;macdz_id&quot;</span>&gt;
<a name="l212"><span class="ln">212  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">class=</span><span class="s4">&quot;mac1&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;2&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">width</span>: <span class="s8">25</span><span class="s7">px</span><span class="s4">&quot;</span>&gt;-
<a name="l213"><span class="ln">213  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">class=</span><span class="s4">&quot;mac2&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;2&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">width</span>: <span class="s8">25</span><span class="s7">px</span><span class="s4">&quot;</span>&gt;-
<a name="l214"><span class="ln">214  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">class=</span><span class="s4">&quot;mac3&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;2&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">width</span>: <span class="s8">25</span><span class="s7">px</span><span class="s4">&quot;</span>&gt;-
<a name="l215"><span class="ln">215  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">class=</span><span class="s4">&quot;mac4&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;2&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">width</span>: <span class="s8">25</span><span class="s7">px</span><span class="s4">&quot;</span>&gt;-
<a name="l216"><span class="ln">216  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">class=</span><span class="s4">&quot;mac5&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;2&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">width</span>: <span class="s8">25</span><span class="s7">px</span><span class="s4">&quot;</span>&gt;-
<a name="l217"><span class="ln">217  </span></a>                    &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;text&quot; </span><span class="s1">value=</span><span class="s4">&quot;&quot; </span><span class="s1">class=</span><span class="s4">&quot;mac6&quot; </span><span class="s1">maxlength=</span><span class="s4">&quot;2&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">width</span>: <span class="s8">25</span><span class="s7">px</span><span class="s4">&quot;</span>&gt;
<a name="l218"><span class="ln">218  </span></a>                &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l219"><span class="ln">219  </span></a>                &lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot; </span><span class="s1">name=</span><span class="s4">&quot;macdz&quot; </span><span class="s1">id=</span><span class="s4">&quot;mac&quot;</span>&gt;
<a name="l220"><span class="ln">220  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l221"><span class="ln">221  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l222"><span class="ln">222  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;使用部门&lt;/<span class="s3">label</span>&gt;
<a name="l223"><span class="ln">223  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l224"><span class="ln">224  </span></a>                    &lt;<span class="s3">select </span><span class="s1">name=</span><span class="s4">&quot;bm&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control m-b bminput&quot; </span><span class="s1">id=</span><span class="s4">&quot;bmid_id&quot; </span><span class="s1">onchange=</span><span class="s4">&quot;</span>getry()<span class="s4">&quot;</span>&gt;
<a name="l225"><span class="ln">225  </span></a>                    &lt;/<span class="s3">select</span>&gt;
<a name="l226"><span class="ln">226  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l227"><span class="ln">227  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l228"><span class="ln">228  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;shiyr&quot; </span><span class="s1">id=</span><span class="s4">&quot;shiyr_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control shiyrinput&quot; </span><span class="s1">list=</span><span class="s4">&quot;browsers&quot; </span><span class="s1">placeholder=</span><span class="s4">&quot;姓名拼音&quot;</span>&gt;
<a name="l229"><span class="ln">229  </span></a>                    &lt;<span class="s3">datalist </span><span class="s1">id=</span><span class="s4">&quot;browsers&quot;</span>&gt;&lt;/<span class="s3">datalist</span>&gt;
<a name="l230"><span class="ln">230  </span></a>                    &lt;<span class="s3">span </span><span class="s1">class=</span><span class="s4">&quot;help-block&quot;</span>&gt;&lt;/<span class="s3">span</span>&gt;
<a name="l231"><span class="ln">231  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l232"><span class="ln">232  </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l233"><span class="ln">233  </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l234"><span class="ln">234  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l235"><span class="ln">235  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l236"><span class="ln">236  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;显<span class="s6">&amp;nbsp;&amp;nbsp;</span>示<span class="s6">&amp;nbsp;&amp;nbsp;</span>器&lt;/<span class="s3">label</span>&gt;
<a name="l237"><span class="ln">237  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l238"><span class="ln">238  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;xsqppcc&quot; </span><span class="s1">id=</span><span class="s4">&quot;xsqppcc_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control xsqinputk&quot;</span>
<a name="l239"><span class="ln">239  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;显示器品牌尺寸信息&quot;</span>
<a name="l240"><span class="ln">240  </span></a>                           <span class="s1">readonly=</span><span class="s4">&quot;readonly&quot;</span>&gt;
<a name="l241"><span class="ln">241  </span></a>                    &lt;<span class="s3">span </span><span class="s1">class=</span><span class="s4">&quot;help-block&quot;</span>&gt;&lt;/<span class="s3">span</span>&gt;
<a name="l242"><span class="ln">242  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l243"><span class="ln">243  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1 fddiv&quot;</span>&gt;
<a name="l244"><span class="ln">244  </span></a>                    &lt;<span class="s3">a </span><span class="s1">class=</span><span class="s4">&quot;btn btn-rounded btn-primary btn-sm&quot; </span><span class="s1">id=</span><span class="s4">&quot;xsqcc_btn&quot;</span>&gt;显示器&lt;/<span class="s3">a</span>&gt;
<a name="l245"><span class="ln">245  </span></a>                    &lt;<span class="s3">span </span><span class="s1">class=</span><span class="s4">&quot;help-block&quot;</span>&gt;&lt;/<span class="s3">span</span>&gt;
<a name="l246"><span class="ln">246  </span></a>                &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l247"><span class="ln">247  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l248"><span class="ln">248  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l249"><span class="ln">249  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;硬盘信息&lt;/<span class="s3">label</span>&gt;
<a name="l250"><span class="ln">250  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l251"><span class="ln">251  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;ypdx&quot; </span><span class="s1">id=</span><span class="s4">&quot;ypdx_id_1&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control ypinputk&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l252"><span class="ln">252  </span></a>                           <span class="s1">readonly=</span><span class="s4">&quot;readonly&quot;</span>
<a name="l253"><span class="ln">253  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请点击硬盘一按钮     &quot;</span>&gt;
<a name="l254"><span class="ln">254  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l255"><span class="ln">255  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1 ypdiv&quot;</span>&gt;
<a name="l256"><span class="ln">256  </span></a>                    &lt;<span class="s3">a </span><span class="s1">class=</span><span class="s4">&quot;btn btn-primary btn-rounded btn-sm&quot; </span><span class="s1">id=</span><span class="s4">&quot;ypdx_btn_1&quot;</span>&gt;硬盘一&lt;/<span class="s3">a</span>&gt;
<a name="l257"><span class="ln">257  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l258"><span class="ln">258  </span></a>            &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l259"><span class="ln">259  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l260"><span class="ln">260  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l261"><span class="ln">261  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot; </span>&gt;硬盘信息&lt;/<span class="s3">label</span>&gt;
<a name="l262"><span class="ln">262  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l263"><span class="ln">263  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;ypdx&quot; </span><span class="s1">id=</span><span class="s4">&quot;ypdx_id_2&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control ypinputk&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l264"><span class="ln">264  </span></a>                           <span class="s1">readonly=</span><span class="s4">&quot;readonly&quot;</span>
<a name="l265"><span class="ln">265  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请点击硬盘二按钮     &quot;</span>&gt;
<a name="l266"><span class="ln">266  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l267"><span class="ln">267  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1 ypdiv&quot;</span>&gt;
<a name="l268"><span class="ln">268  </span></a>                    &lt;<span class="s3">a </span><span class="s1">class=</span><span class="s4">&quot;btn btn-rounded btn-primary btn-sm&quot; </span><span class="s1">id=</span><span class="s4">&quot;ypdx_btn_2&quot;</span>&gt;硬盘二&lt;/<span class="s3">a</span>&gt;
<a name="l269"><span class="ln">269  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l270"><span class="ln">270  </span></a>            &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l271"><span class="ln">271  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l272"><span class="ln">272  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l273"><span class="ln">273  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;硬盘信息&lt;/<span class="s3">label</span>&gt;
<a name="l274"><span class="ln">274  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1&quot;</span>&gt;
<a name="l275"><span class="ln">275  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;ypdx&quot; </span><span class="s1">id=</span><span class="s4">&quot;ypdx_id_3&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control ypinputk&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l276"><span class="ln">276  </span></a>                           <span class="s1">readonly=</span><span class="s4">&quot;readonly&quot;</span>
<a name="l277"><span class="ln">277  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请点击硬盘三按钮     &quot;</span>
<a name="l278"><span class="ln">278  </span></a>                           <span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">text-align</span>:<span class="s7">left</span>;<span class="s6">padding-right</span>: <span class="s8">3</span><span class="s7">px</span>;<span class="s6">padding-left</span>: <span class="s8">3</span><span class="s7">px</span>;<span class="s6">background-color</span>: <span class="s5">#FFFFFF</span><span class="s4">&quot;</span>&gt;
<a name="l279"><span class="ln">279  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l280"><span class="ln">280  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-1 ypdiv&quot;</span>&gt;
<a name="l281"><span class="ln">281  </span></a>                    &lt;<span class="s3">a </span><span class="s1">class=</span><span class="s4">&quot;btn btn-rounded btn-primary btn-sm&quot; </span><span class="s1">id=</span><span class="s4">&quot;ypdx_btn_3&quot;</span>&gt;硬盘三&lt;/<span class="s3">a</span>&gt;
<a name="l282"><span class="ln">282  </span></a>                    <span class="s9">&lt;!--&lt;a class=&quot;btn btn-rounded btn-primary btn-sm &quot; onclick=&quot;dianj()&quot;&gt;点击看看&lt;/a&gt;--&gt;</span>
<a name="l283"><span class="ln">283  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l284"><span class="ln">284  </span></a>            &lt;/<span class="s3">div</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l285"><span class="ln">285  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row rowdiv&quot;</span>&gt;
<a name="l286"><span class="ln">286  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l287"><span class="ln">287  </span></a>                &lt;<span class="s3">label </span><span class="s1">class=</span><span class="s4">&quot;col-sm-2 control-label labkz&quot;</span>&gt;备<span class="s6">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span>注&lt;/<span class="s3">label</span>&gt;
<a name="l288"><span class="ln">288  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-10&quot;</span>&gt;
<a name="l289"><span class="ln">289  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;beiz&quot; </span><span class="s1">id=</span><span class="s4">&quot;beiz_id&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control qbinput&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>
<a name="l290"><span class="ln">290  </span></a>                           <span class="s1">placeholder=</span><span class="s4">&quot;请输入备注&quot;</span>&gt;
<a name="l291"><span class="ln">291  </span></a>                    &lt;<span class="s3">p </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">display</span>: <span class="s7">none</span><span class="s4">&quot; </span><span class="s1">id=</span><span class="s4">&quot;pgsid&quot;</span>&gt;[[${session.gsid}]]&lt;/<span class="s3">p</span>&gt;
<a name="l292"><span class="ln">292  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l293"><span class="ln">293  </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l294"><span class="ln">294  </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l295"><span class="ln">295  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">display</span>: <span class="s7">none</span><span class="s4">&quot;</span>&gt;
<a name="l296"><span class="ln">296  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-12&quot;</span>&gt;
<a name="l297"><span class="ln">297  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l298"><span class="ln">298  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;went&quot; </span><span class="s1">disabled id=</span><span class="s4">&quot;tj_text&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control&quot; </span><span class="s1">type=</span><span class="s4">&quot;text&quot;</span>&gt;
<a name="l299"><span class="ln">299  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l300"><span class="ln">300  </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l301"><span class="ln">301  </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l302"><span class="ln">302  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">display</span>: <span class="s7">none</span><span class="s4">&quot;</span>&gt;
<a name="l303"><span class="ln">303  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;col-sm-12&quot;</span>&gt;
<a name="l304"><span class="ln">304  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l305"><span class="ln">305  </span></a>                    &lt;<span class="s3">div </span><span class="s1">id=</span><span class="s4">&quot;tj_qrcode&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">width</span>:<span class="s8">100</span><span class="s7">px</span>; <span class="s6">height</span>:<span class="s8">100</span><span class="s7">px</span>; <span class="s6">margin-top</span>:<span class="s8">15</span><span class="s7">px</span>;<span class="s4">&quot;</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l306"><span class="ln">306  </span></a>                    &lt;<span class="s3">input </span><span class="s1">name=</span><span class="s4">&quot;qrcode&quot; </span><span class="s1">id=</span><span class="s4">&quot;tj_qrcode_update_input_15&quot; </span><span class="s1">class=</span><span class="s4">&quot;form-control&quot; </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot;</span>&gt;
<a name="l307"><span class="ln">307  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l308"><span class="ln">308  </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l309"><span class="ln">309  </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l310"><span class="ln">310  </span></a>        &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;row&quot;</span>&gt;
<a name="l311"><span class="ln">311  </span></a>            &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;form-group&quot;</span>&gt;
<a name="l312"><span class="ln">312  </span></a>                &lt;<span class="s3">div </span><span class="s1">class=</span><span class="s4">&quot;modal-footer&quot; </span><span class="s1">style=</span><span class="s4">&quot;</span><span class="s6">height</span>:<span class="s8">0</span><span class="s7">px</span><span class="s4">&quot;</span>&gt;
<a name="l313"><span class="ln">313  </span></a>                    &lt;<span class="s3">button </span><span class="s1">type=</span><span class="s4">&quot;button&quot; </span><span class="s1">class=</span><span class="s4">&quot;btn btn-white&quot; </span><span class="s1">id=</span><span class="s4">&quot;sb_save_btn&quot; </span><span class="s1">onclick=</span><span class="s4">&quot;</span>savesb()<span class="s4">&quot;</span>&gt;保存
<a name="l314"><span class="ln">314  </span></a>                    &lt;/<span class="s3">button</span>&gt;
<a name="l315"><span class="ln">315  </span></a>                &lt;/<span class="s3">div</span>&gt;
<a name="l316"><span class="ln">316  </span></a>            &lt;/<span class="s3">div</span>&gt;
<a name="l317"><span class="ln">317  </span></a>        &lt;/<span class="s3">div</span>&gt;
<a name="l318"><span class="ln">318  </span></a>    &lt;/<span class="s3">form</span>&gt;
<a name="l319"><span class="ln">319  </span></a>&lt;/<span class="s3">div</span>&gt;
<a name="l320"><span class="ln">320  </span></a>&lt;<span class="s3">div</span>&gt;&lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot; </span><span class="s1">id=</span><span class="s4">&quot;_pageNumber&quot;</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l321"><span class="ln">321  </span></a>&lt;<span class="s3">div</span>&gt;&lt;<span class="s3">input </span><span class="s1">type=</span><span class="s4">&quot;hidden&quot; </span><span class="s1">id=</span><span class="s4">&quot;_pageSize&quot;</span>&gt;&lt;/<span class="s3">div</span>&gt;
<a name="l322"><span class="ln">322  </span></a><span class="s9">&lt;!--&lt;p&gt;[[${url}]]&lt;/p&gt;--&gt;</span>
<a name="l323"><span class="ln">323  </span></a>&lt;<span class="s3">th:block </span><span class="s1">th:include=</span><span class="s4">&quot;include :: footer&quot;</span>/&gt;
<a name="l324"><span class="ln">324  </span></a>&lt;<span class="s3">script </span><span class="s1">th:src=</span><span class="s4">&quot;@{/ruoyi/js/jquery-confirm.min.js}&quot;</span>&gt;&lt;/<span class="s3">script</span>&gt;
<a name="l325"><span class="ln">325  </span></a>&lt;<span class="s3">script </span><span class="s1">th:src=</span><span class="s4">&quot;@{/ruoyi/js/jquery.form.js}&quot;</span>&gt;&lt;/<span class="s3">script</span>&gt;
<a name="l326"><span class="ln">326  </span></a>&lt;<span class="s3">script </span><span class="s1">th:inline=</span><span class="s4">&quot;javascript&quot;</span>&gt;
<a name="l327"><span class="ln">327  </span></a>    <span class="s5">var </span>gsid=<span class="s7">&quot;&quot;</span>;
<a name="l328"><span class="ln">328  </span></a>    $(document).ready(<span class="s5">function </span>() {
<a name="l329"><span class="ln">329  </span></a>        gsid=$(<span class="s7">&quot;#pgsid&quot;</span>).text()
<a name="l330"><span class="ln">330  </span></a>        gettjmtk()
<a name="l331"><span class="ln">331  </span></a>        getsblx(<span class="s7">&quot;#sbbh_sel&quot;</span>);
<a name="l332"><span class="ln">332  </span></a>        getDepts(<span class="s7">&quot;#bmid_id&quot;</span>);
<a name="l333"><span class="ln">333  </span></a>        getxsqpp();
<a name="l334"><span class="ln">334  </span></a>            layui.use(<span class="s7">'laydate'</span>, <span class="s5">function </span>() {
<a name="l335"><span class="ln">335  </span></a>                <span class="s5">var </span>laydate = layui.laydate;
<a name="l336"><span class="ln">336  </span></a>                laydate.render({
<a name="l337"><span class="ln">337  </span></a>                    elem: <span class="s7">'#gmrq_id'</span>,
<a name="l338"><span class="ln">338  </span></a>                    type: <span class="s7">'date'</span>,
<a name="l339"><span class="ln">339  </span></a>                    trigger: <span class="s7">'click'</span>
<a name="l340"><span class="ln">340  </span></a>                });
<a name="l341"><span class="ln">341  </span></a>            });
<a name="l342"><span class="ln">342  </span></a>        <span class="s5">if </span>(gsid == <span class="s5">null</span>) {
<a name="l343"><span class="ln">343  </span></a>            alert(<span class="s7">&quot;当前状态未登陆系统或浏览器中当前会话结束了，您需要重新登陆&quot;</span>)
<a name="l344"><span class="ln">344  </span></a>            window.location.href = <span class="s7">&quot;/login&quot;</span>;
<a name="l345"><span class="ln">345  </span></a>        }
<a name="l346"><span class="ln">346  </span></a>    });
<a name="l347"><span class="ln">347  </span></a>
<a name="l348"><span class="ln">348  </span></a>    <span class="s5">function </span>sbbhsc() {
<a name="l349"><span class="ln">349  </span></a>        <span class="s5">var </span>sb = $(<span class="s7">&quot;#sbbh_sel option:selected&quot;</span>).val();
<a name="l350"><span class="ln">350  </span></a>        <span class="s5">var </span>sbmc = $(<span class="s7">&quot;#sbbh_sel option:selected&quot;</span>).text();
<a name="l351"><span class="ln">351  </span></a>        $.ajax({
<a name="l352"><span class="ln">352  </span></a>            url: <span class="s7">&quot;/sbgl/sbflb/maxbh/&quot; </span>+ sb,
<a name="l353"><span class="ln">353  </span></a>            type: <span class="s7">'GET'</span>,
<a name="l354"><span class="ln">354  </span></a>            async: <span class="s5">false</span>,
<a name="l355"><span class="ln">355  </span></a>            success: <span class="s5">function </span>(data) {
<a name="l356"><span class="ln">356  </span></a>                $(<span class="s7">&quot;#sbbh_id&quot;</span>).val(data);
<a name="l357"><span class="ln">357  </span></a>                $(<span class="s7">&quot;#sbmc_id&quot;</span>).val(sbmc);
<a name="l358"><span class="ln">358  </span></a>            },
<a name="l359"><span class="ln">359  </span></a>        })
<a name="l360"><span class="ln">360  </span></a>        $(<span class="s7">'#tj_text'</span>).val([[${url}]]+<span class="s7">'/sbgl/sbxxb/sbwh/' </span>+ $(<span class="s7">&quot;#sbbh_id&quot;</span>).val() + <span class="s7">'/'</span>);
<a name="l361"><span class="ln">361  </span></a>        makeqrcode();
<a name="l362"><span class="ln">362  </span></a>        <span class="s9">// var sbbh = obj.getAttribute(&quot;value&quot;);</span>
<a name="l363"><span class="ln">363  </span></a>        <span class="s5">var </span>tj_qrcode = document.getElementById(<span class="s7">&quot;tj_qrcode&quot;</span>).lastElementChild.outerHTML;
<a name="l364"><span class="ln">364  </span></a>        $(<span class="s7">&quot;#tj_qrcode_update_input_15&quot;</span>).val(tj_qrcode);
<a name="l365"><span class="ln">365  </span></a>    }
<a name="l366"><span class="ln">366  </span></a>
<a name="l367"><span class="ln">367  </span></a>    <span class="s9">//点击生成设备编号后的js</span>
<a name="l368"><span class="ln">368  </span></a>    $(<span class="s7">'#creat_sbbh_btn'</span>).click(<span class="s5">function </span>() {
<a name="l369"><span class="ln">369  </span></a>        <span class="s5">var </span>sb = $(<span class="s7">&quot;#sbbh_sel option:selected&quot;</span>).val();
<a name="l370"><span class="ln">370  </span></a>        <span class="s5">var </span>sbmc = $(<span class="s7">&quot;#sbbh_sel option:selected&quot;</span>).text();
<a name="l371"><span class="ln">371  </span></a>        $.ajax({
<a name="l372"><span class="ln">372  </span></a>            url: <span class="s7">&quot;/sbgl/sbflb/maxbh/&quot; </span>+ sb,
<a name="l373"><span class="ln">373  </span></a>            type: <span class="s7">'GET'</span>,
<a name="l374"><span class="ln">374  </span></a>            async: <span class="s5">false</span>,
<a name="l375"><span class="ln">375  </span></a>            success: <span class="s5">function </span>(data) {
<a name="l376"><span class="ln">376  </span></a>                $(<span class="s7">&quot;#sbbh_id&quot;</span>).val(data);
<a name="l377"><span class="ln">377  </span></a>                $(<span class="s7">&quot;#sbmc_id&quot;</span>).val(sbmc);
<a name="l378"><span class="ln">378  </span></a>            },
<a name="l379"><span class="ln">379  </span></a>        })
<a name="l380"><span class="ln">380  </span></a>        $(<span class="s7">'#tj_text'</span>).val([[${url}]]+<span class="s7">'/sbgl/sbxxb/sbwh/' </span>+ $(<span class="s7">&quot;#sbbh_id&quot;</span>).val() + <span class="s7">'/'</span>);
<a name="l381"><span class="ln">381  </span></a>        makeqrcode();
<a name="l382"><span class="ln">382  </span></a>        <span class="s9">// var sbbh = obj.getAttribute(&quot;value&quot;);</span>
<a name="l383"><span class="ln">383  </span></a>        <span class="s5">var </span>tj_qrcode = document.getElementById(<span class="s7">&quot;tj_qrcode&quot;</span>).lastElementChild.outerHTML;
<a name="l384"><span class="ln">384  </span></a>        $(<span class="s7">&quot;#tj_qrcode_update_input_15&quot;</span>).val(tj_qrcode);
<a name="l385"><span class="ln">385  </span></a>    });
<a name="l386"><span class="ln">386  </span></a>
<a name="l387"><span class="ln">387  </span></a>    <span class="s5">function </span>getshiyr() {
<a name="l388"><span class="ln">388  </span></a>        <span class="s5">var </span>shiyr = $(<span class="s7">&quot;#shiyr_id&quot;</span>).val();
<a name="l389"><span class="ln">389  </span></a>        <span class="s5">var </span>bm = $(<span class="s7">&quot;#bmid_id option:selected&quot;</span>).text();
<a name="l390"><span class="ln">390  </span></a>        <span class="s5">var </span>xinshiyr = <span class="s7">&quot;&quot;</span>
<a name="l391"><span class="ln">391  </span></a>        $.ajax({
<a name="l392"><span class="ln">392  </span></a>            url: <span class="s7">&quot;/sbgl/ygxxb/getbmbyshiyrandbm/&quot; </span>+ shiyr + <span class="s7">&quot;/&quot; </span>+ bm,
<a name="l393"><span class="ln">393  </span></a>            type: <span class="s7">&quot;get&quot;</span>,
<a name="l394"><span class="ln">394  </span></a>            async: <span class="s5">false</span>,
<a name="l395"><span class="ln">395  </span></a>            success: <span class="s5">function </span>(data) {
<a name="l396"><span class="ln">396  </span></a>                xinshiyr = data
<a name="l397"><span class="ln">397  </span></a>            }
<a name="l398"><span class="ln">398  </span></a>        })
<a name="l399"><span class="ln">399  </span></a>        <span class="s5">return </span>xinshiyr;
<a name="l400"><span class="ln">400  </span></a>    }
<a name="l401"><span class="ln">401  </span></a>
<a name="l402"><span class="ln">402  </span></a>    <span class="s9">//初始化表单数据</span>
<a name="l403"><span class="ln">403  </span></a>    <span class="s5">function </span>gettjmtk() {
<a name="l404"><span class="ln">404  </span></a>        $(<span class="s7">&quot;#sbbh_sel&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l405"><span class="ln">405  </span></a>        $(<span class="s7">&quot;#sbbh_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l406"><span class="ln">406  </span></a>        $(<span class="s7">&quot;#sbmc_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l407"><span class="ln">407  </span></a>        $(<span class="s7">&quot;#guige_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l408"><span class="ln">408  </span></a>        $(<span class="s7">&quot;#shccj_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l409"><span class="ln">409  </span></a>        $(<span class="s7">&quot;#gmrq_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l410"><span class="ln">410  </span></a>        $(<span class="s7">&quot;#bmid_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l411"><span class="ln">411  </span></a>        $(<span class="s7">&quot;#shiyr_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l412"><span class="ln">412  </span></a>        $(<span class="s7">'#zbxh_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l413"><span class="ln">413  </span></a>        $(<span class="s7">'#cpuxh_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l414"><span class="ln">414  </span></a>        $(<span class="s7">'#ncggdx_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l415"><span class="ln">415  </span></a>        $(<span class="s7">'#xkxh_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l416"><span class="ln">416  </span></a>        $(<span class="s7">'#ypdx_id_1'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l417"><span class="ln">417  </span></a>        $(<span class="s7">'#ypdx_id_2'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l418"><span class="ln">418  </span></a>        $(<span class="s7">'#ypdx_id_3'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l419"><span class="ln">419  </span></a>        $(<span class="s7">'#xsqppcc_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l420"><span class="ln">420  </span></a>        $(<span class="s7">'#ipdz1'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l421"><span class="ln">421  </span></a>        $(<span class="s7">'#ipdz2'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l422"><span class="ln">422  </span></a>        $(<span class="s7">'#ipdz3'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l423"><span class="ln">423  </span></a>        $(<span class="s7">'#ipdz4'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l424"><span class="ln">424  </span></a>        $(<span class="s7">'.mac1'</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l425"><span class="ln">425  </span></a>        $(<span class="s7">'.mac2'</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l426"><span class="ln">426  </span></a>        $(<span class="s7">'.mac3'</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l427"><span class="ln">427  </span></a>        $(<span class="s7">'.mac4'</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l428"><span class="ln">428  </span></a>        $(<span class="s7">'.mac5'</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l429"><span class="ln">429  </span></a>        $(<span class="s7">'.mac6'</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l430"><span class="ln">430  </span></a>        $(<span class="s7">'#beiz_id'</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l431"><span class="ln">431  </span></a>        $(<span class="s7">&quot;#gsidfrotj&quot;</span>).val(gsid)
<a name="l432"><span class="ln">432  </span></a>        getDepts(<span class="s7">&quot;#bmid_id&quot;</span>);
<a name="l433"><span class="ln">433  </span></a>        getsblx(<span class="s7">&quot;#sbbh_sel&quot;</span>);
<a name="l434"><span class="ln">434  </span></a>        getxsqpp();
<a name="l435"><span class="ln">435  </span></a>        $(<span class="s7">'#ypdx_btn_1'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l436"><span class="ln">436  </span></a>        $(<span class="s7">'#ypdx_btn_2'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l437"><span class="ln">437  </span></a>        $(<span class="s7">'#ypdx_btn_3'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l438"><span class="ln">438  </span></a>        $(<span class="s7">'#xsqcc_btn'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l439"><span class="ln">439  </span></a>        $(<span class="s7">'#creat_sbbh_btn'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l440"><span class="ln">440  </span></a>        document.getElementById(<span class="s7">'xsqppcc_id'</span>).style.backgroundColor = <span class="s7">&quot;#ffffff&quot;</span>
<a name="l441"><span class="ln">441  </span></a>        document.getElementById(<span class="s7">'ypdx_id_1'</span>).style.backgroundColor = <span class="s7">&quot;#ffffff&quot;</span>
<a name="l442"><span class="ln">442  </span></a>        document.getElementById(<span class="s7">'ypdx_id_2'</span>).style.backgroundColor = <span class="s7">&quot;#ffffff&quot;</span>
<a name="l443"><span class="ln">443  </span></a>        document.getElementById(<span class="s7">'ypdx_id_3'</span>).style.backgroundColor = <span class="s7">&quot;#ffffff&quot;</span>
<a name="l444"><span class="ln">444  </span></a>    };
<a name="l445"><span class="ln">445  </span></a>
<a name="l446"><span class="ln">446  </span></a>    <span class="s5">function </span>getsblx(ele) {
<a name="l447"><span class="ln">447  </span></a>        $.ajax({
<a name="l448"><span class="ln">448  </span></a>            url: <span class="s7">'/sbgl/sbflb/getsbflb/' </span>+ gsid,
<a name="l449"><span class="ln">449  </span></a>            type: <span class="s7">'get'</span>,
<a name="l450"><span class="ln">450  </span></a>            async: <span class="s5">false</span>,
<a name="l451"><span class="ln">451  </span></a>            success: <span class="s5">function </span>(data) {
<a name="l452"><span class="ln">452  </span></a>                $(ele).empty();
<a name="l453"><span class="ln">453  </span></a>                <span class="s5">var </span>options = <span class="s7">&quot;&quot;</span>;   <span class="s9">//字符串拼接</span>
<a name="l454"><span class="ln">454  </span></a>                $(ele).append(<span class="s7">'&lt;option value=&quot;&quot;&gt;请选择设备类型&lt;/option&gt;'</span>);
<a name="l455"><span class="ln">455  </span></a>                <span class="s5">for </span>(<span class="s5">var </span>i <span class="s5">in </span>data) {  <span class="s9">//遍历json数组</span>
<a name="l456"><span class="ln">456  </span></a>                    options += <span class="s7">&quot;&lt;option value='&quot; </span>+ data[i].sbid + <span class="s7">&quot;'&gt;&quot; </span>+ data[i].sbmc + <span class="s7">&quot;&lt;/option&gt;&quot;</span>
<a name="l457"><span class="ln">457  </span></a>                    <span class="s9">//     // &quot;&lt;input type='radio' class='roles' name='roles' id='&quot;+data[i].wjdcs+&quot;' value='&quot;+data[i].wjdc+&quot;'&gt;&quot;+data[i].wjdc+&quot;&amp;nbsp;&amp;nbsp;&quot;</span>
<a name="l458"><span class="ln">458  </span></a>                }
<a name="l459"><span class="ln">459  </span></a>                $(ele).append(options);
<a name="l460"><span class="ln">460  </span></a>            }
<a name="l461"><span class="ln">461  </span></a>        })
<a name="l462"><span class="ln">462  </span></a>    }
<a name="l463"><span class="ln">463  </span></a>
<a name="l464"><span class="ln">464  </span></a>    <span class="s5">function </span>getDepts(ele) {
<a name="l465"><span class="ln">465  </span></a>        $.ajax({
<a name="l466"><span class="ln">466  </span></a>            url: <span class="s7">&quot;/sbgl/ygxxb/getbm/&quot; </span>+ gsid,
<a name="l467"><span class="ln">467  </span></a>            type: <span class="s7">'get'</span>,
<a name="l468"><span class="ln">468  </span></a>            async: <span class="s5">false</span>,
<a name="l469"><span class="ln">469  </span></a>            success: <span class="s5">function </span>(data) {
<a name="l470"><span class="ln">470  </span></a>                $(ele).empty();
<a name="l471"><span class="ln">471  </span></a>                <span class="s5">var </span>options = <span class="s7">&quot;&quot;</span>;   <span class="s9">//字符串拼接</span>
<a name="l472"><span class="ln">472  </span></a>                $(ele).append(<span class="s7">'&lt;option value=&quot;&quot;&gt;请选择部门&lt;/option&gt;'</span>);
<a name="l473"><span class="ln">473  </span></a>                <span class="s5">for </span>(<span class="s5">var </span>i <span class="s5">in </span>data) {  <span class="s9">//遍历json数组</span>
<a name="l474"><span class="ln">474  </span></a>                    options += <span class="s7">&quot;&lt;option value='&quot; </span>+ data[i].bm + <span class="s7">&quot;'&gt;&quot; </span>+ data[i].bm + <span class="s7">&quot;&lt;/option&gt;&quot;</span>
<a name="l475"><span class="ln">475  </span></a>                    <span class="s9">//     // &quot;&lt;input type='radio' class='roles' name='roles' id='&quot;+data[i].wjdcs+&quot;' value='&quot;+data[i].wjdc+&quot;'&gt;&quot;+data[i].wjdc+&quot;&amp;nbsp;&amp;nbsp;&quot;</span>
<a name="l476"><span class="ln">476  </span></a>                }
<a name="l477"><span class="ln">477  </span></a>                $(ele).append(options);
<a name="l478"><span class="ln">478  </span></a>            },
<a name="l479"><span class="ln">479  </span></a>        });
<a name="l480"><span class="ln">480  </span></a>    };
<a name="l481"><span class="ln">481  </span></a>
<a name="l482"><span class="ln">482  </span></a>    <span class="s5">function </span>getxsqpp() {
<a name="l483"><span class="ln">483  </span></a>        $(<span class="s7">'#xsqpp_id'</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l484"><span class="ln">484  </span></a>        $(<span class="s7">'#browsersforxsq'</span>).empty();
<a name="l485"><span class="ln">485  </span></a>        $.ajax({
<a name="l486"><span class="ln">486  </span></a>            url: <span class="s7">&quot;/sbgl/xsqxxb/getxsqxxb/&quot;</span>,
<a name="l487"><span class="ln">487  </span></a>            type: <span class="s7">'get'</span>,
<a name="l488"><span class="ln">488  </span></a>            async: <span class="s5">false</span>,
<a name="l489"><span class="ln">489  </span></a>            success: <span class="s5">function </span>(data) {
<a name="l490"><span class="ln">490  </span></a>                $(<span class="s7">'#xsqpp_id'</span>).empty();
<a name="l491"><span class="ln">491  </span></a>                <span class="s5">var </span>options = <span class="s7">&quot;&quot;</span>;   <span class="s9">//字符串拼接</span>
<a name="l492"><span class="ln">492  </span></a>                // $(&quot;#browsersforxsq&quot;).append('&lt;option value=&quot;&quot;&gt;请选择显示器品牌&lt;/option&gt;');
<a name="l493"><span class="ln">493  </span></a>                <span class="s5">for </span>(<span class="s5">var </span>i <span class="s5">in </span>data) {  <span class="s9">//遍历json数组</span>
<a name="l494"><span class="ln">494  </span></a>                    options += <span class="s7">&quot;&lt;option value='&quot; </span>+ data[i].xsqpp + <span class="s7">&quot;'&gt;&quot; </span>+ data[i].zjm + <span class="s7">&quot;&lt;/option&gt;&quot;</span>
<a name="l495"><span class="ln">495  </span></a>                    <span class="s9">//     // &quot;&lt;input type='radio' class='roles' name='roles' id='&quot;+data[i].wjdcs+&quot;' value='&quot;+data[i].wjdc+&quot;'&gt;&quot;+data[i].wjdc+&quot;&amp;nbsp;&amp;nbsp;&quot;</span>
<a name="l496"><span class="ln">496  </span></a>                }
<a name="l497"><span class="ln">497  </span></a>                $(<span class="s7">'#browsersforxsq'</span>).append(options);
<a name="l498"><span class="ln">498  </span></a>            },
<a name="l499"><span class="ln">499  </span></a>        });
<a name="l500"><span class="ln">500  </span></a>    };
<a name="l501"><span class="ln">501  </span></a>
<a name="l502"><span class="ln">502  </span></a>
<a name="l503"><span class="ln">503  </span></a>    <span class="s5">function </span>getry() {
<a name="l504"><span class="ln">504  </span></a>        <span class="s5">var </span>bm = $(<span class="s7">&quot;#bmid_id option:selected&quot;</span>).val();
<a name="l505"><span class="ln">505  </span></a>        $(<span class="s7">'#shiyr_id'</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l506"><span class="ln">506  </span></a>        $(<span class="s7">'#browsers'</span>).empty();
<a name="l507"><span class="ln">507  </span></a>        $.ajax({
<a name="l508"><span class="ln">508  </span></a>            url: <span class="s7">&quot;/sbgl/ygxxb/getygxx/&quot; </span>+ bm,
<a name="l509"><span class="ln">509  </span></a>            type: <span class="s7">'get'</span>,
<a name="l510"><span class="ln">510  </span></a>            async: <span class="s5">false</span>,
<a name="l511"><span class="ln">511  </span></a>            success: <span class="s5">function </span>(data) {
<a name="l512"><span class="ln">512  </span></a>                $(<span class="s7">'#shiyr_id'</span>).empty();
<a name="l513"><span class="ln">513  </span></a>                <span class="s5">var </span>options = <span class="s7">&quot;&quot;</span>;   <span class="s9">//字符串拼接</span>
<a name="l514"><span class="ln">514  </span></a>                <span class="s5">for </span>(<span class="s5">var </span>i <span class="s5">in </span>data) {  <span class="s9">//遍历json数组</span>
<a name="l515"><span class="ln">515  </span></a>                    options += <span class="s7">&quot;&lt;option value='&quot; </span>+ data[i].shiyr + <span class="s7">&quot;'&gt;&quot; </span>+ data[i].zjm + <span class="s7">&quot;&lt;/option&gt;&quot;</span>
<a name="l516"><span class="ln">516  </span></a>                    <span class="s9">//     // &quot;&lt;input type='radio' class='roles' name='roles' id='&quot;+data[i].wjdcs+&quot;' value='&quot;+data[i].wjdc+&quot;'&gt;&quot;+data[i].wjdc+&quot;&amp;nbsp;&amp;nbsp;&quot;</span>
<a name="l517"><span class="ln">517  </span></a>                }
<a name="l518"><span class="ln">518  </span></a>                $(<span class="s7">'#browsers'</span>).append(options);
<a name="l519"><span class="ln">519  </span></a>            },
<a name="l520"><span class="ln">520  </span></a>        });
<a name="l521"><span class="ln">521  </span></a>    }
<a name="l522"><span class="ln">522  </span></a>
<a name="l523"><span class="ln">523  </span></a>    <span class="s5">function </span>getmaxbh() {
<a name="l524"><span class="ln">524  </span></a>        <span class="s5">var </span>sbid = $(<span class="s7">&quot;#sbbh_sel option:selected&quot;</span>).val()
<a name="l525"><span class="ln">525  </span></a>        <span class="s5">var </span>maxbh = <span class="s7">&quot;&quot;</span>
<a name="l526"><span class="ln">526  </span></a>        $.ajax({
<a name="l527"><span class="ln">527  </span></a>            url: <span class="s7">&quot;/sbgl/sbflb/maxbhforint/&quot; </span>+ sbid + <span class="s7">&quot;/&quot; </span>+ gsid,
<a name="l528"><span class="ln">528  </span></a>            type: <span class="s7">&quot;get&quot;</span>,
<a name="l529"><span class="ln">529  </span></a>            async: <span class="s5">false</span>,
<a name="l530"><span class="ln">530  </span></a>            success: <span class="s5">function </span>(data) {
<a name="l531"><span class="ln">531  </span></a>                maxbh = data
<a name="l532"><span class="ln">532  </span></a>            }
<a name="l533"><span class="ln">533  </span></a>        })
<a name="l534"><span class="ln">534  </span></a>        <span class="s5">return </span>maxbh
<a name="l535"><span class="ln">535  </span></a>    }
<a name="l536"><span class="ln">536  </span></a>
<a name="l537"><span class="ln">537  </span></a>    <span class="s5">function </span>updatesbflb() {
<a name="l538"><span class="ln">538  </span></a>        <span class="s5">var </span>sbid = $(<span class="s7">&quot;#sbbh_sel option:selected&quot;</span>).val()
<a name="l539"><span class="ln">539  </span></a>        $(<span class="s7">&quot;#maxbh&quot;</span>).val(getmaxbh())
<a name="l540"><span class="ln">540  </span></a>        $.ajax({
<a name="l541"><span class="ln">541  </span></a>            url: <span class="s7">&quot;/sbgl/sbflb/updatesbflb/&quot; </span>+ sbid,
<a name="l542"><span class="ln">542  </span></a>            type: <span class="s7">&quot;put&quot;</span>,
<a name="l543"><span class="ln">543  </span></a>            async: <span class="s5">false</span>,
<a name="l544"><span class="ln">544  </span></a>            data: $(<span class="s7">&quot;#form-sb-add&quot;</span>).serialize(),
<a name="l545"><span class="ln">545  </span></a>            success: <span class="s5">function </span>(data) {
<a name="l546"><span class="ln">546  </span></a>            }
<a name="l547"><span class="ln">547  </span></a>        })
<a name="l548"><span class="ln">548  </span></a>    }
<a name="l549"><span class="ln">549  </span></a>
<a name="l550"><span class="ln">550  </span></a>    <span class="s5">function </span>savesbenter() {
<a name="l551"><span class="ln">551  </span></a>        <span class="s5">if </span>(event.keyCode == <span class="s8">13</span>) {
<a name="l552"><span class="ln">552  </span></a>            savesb()
<a name="l553"><span class="ln">553  </span></a>        }
<a name="l554"><span class="ln">554  </span></a>    }
<a name="l555"><span class="ln">555  </span></a>
<a name="l556"><span class="ln">556  </span></a>    <span class="s5">function </span>savesb() {
<a name="l557"><span class="ln">557  </span></a>        <span class="s5">var </span>sbbh_sel = $(<span class="s7">&quot;#sbbh_sel&quot;</span>).val()
<a name="l558"><span class="ln">558  </span></a>        <span class="s5">var </span>ypdx_sel_1 = $(<span class="s7">&quot;#ypdx_sel_1 option:selected&quot;</span>).text();
<a name="l559"><span class="ln">559  </span></a>        <span class="s5">var </span>ypdx_sel_2 = $(<span class="s7">&quot;#ypdx_sel_2 option:selected&quot;</span>).text();
<a name="l560"><span class="ln">560  </span></a>        <span class="s5">var </span>ypdx_sel_3 = $(<span class="s7">&quot;#ypdx_sel_3 option:selected&quot;</span>).text();
<a name="l561"><span class="ln">561  </span></a>        <span class="s5">var </span>sbbh_id = $(<span class="s7">&quot;#sbbh_id&quot;</span>).val()
<a name="l562"><span class="ln">562  </span></a>        <span class="s5">var </span>sbmc_id = $(<span class="s7">&quot;#sbmc_id&quot;</span>).val()
<a name="l563"><span class="ln">563  </span></a>        <span class="s5">var </span>guige_id = $(<span class="s7">&quot;#guige_id&quot;</span>).val()
<a name="l564"><span class="ln">564  </span></a>        <span class="s5">var </span>shccj_id = $(<span class="s7">&quot;#shccj_id&quot;</span>).val()
<a name="l565"><span class="ln">565  </span></a>        <span class="s5">var </span>gmrq_id = $(<span class="s7">&quot;#gmrq_id&quot;</span>).val()
<a name="l566"><span class="ln">566  </span></a>        <span class="s5">var </span>bmid_id = $(<span class="s7">&quot;#bmid_id&quot;</span>).val()
<a name="l567"><span class="ln">567  </span></a>        <span class="s5">var </span>shiyr_id = $(<span class="s7">&quot;#shiyr_id&quot;</span>).val()
<a name="l568"><span class="ln">568  </span></a>        <span class="s5">var </span>zbxh_id = $(<span class="s7">'#zbxh_id'</span>).val()
<a name="l569"><span class="ln">569  </span></a>        <span class="s5">var </span>cpuxh_id = $(<span class="s7">'#cpuxh_id'</span>).val()
<a name="l570"><span class="ln">570  </span></a>        <span class="s5">var </span>ncggdx_id = $(<span class="s7">'#ncggdx_id'</span>).val()
<a name="l571"><span class="ln">571  </span></a>        <span class="s5">var </span>xkxh_id = $(<span class="s7">'#xkxh_id'</span>).val()
<a name="l572"><span class="ln">572  </span></a>        <span class="s5">var </span>ypdx_id_1 = $(<span class="s7">'#ypdx_id_1'</span>).val()
<a name="l573"><span class="ln">573  </span></a>        <span class="s5">var </span>ypdx_id_2 = $(<span class="s7">'#ypdx_id_2'</span>).val()
<a name="l574"><span class="ln">574  </span></a>        <span class="s5">var </span>ypdx_id_3 = $(<span class="s7">'#ypdx_id_3'</span>).val()
<a name="l575"><span class="ln">575  </span></a>        <span class="s5">var </span>xsqppcc_id = $(<span class="s7">'#xsqppcc_id'</span>).val()
<a name="l576"><span class="ln">576  </span></a>        <span class="s5">var </span>gsid=$(<span class="s7">&quot;#pgsid&quot;</span>).text()
<a name="l577"><span class="ln">577  </span></a>        <span class="s5">var </span>ipdz1 = $(<span class="s7">'#ipdz1'</span>).val()
<a name="l578"><span class="ln">578  </span></a>        <span class="s5">var </span>ipdz2 = $(<span class="s7">'#ipdz2'</span>).val()
<a name="l579"><span class="ln">579  </span></a>        <span class="s5">var </span>ipdz3 = $(<span class="s7">'#ipdz3'</span>).val()
<a name="l580"><span class="ln">580  </span></a>        <span class="s5">var </span>ipdz4 = $(<span class="s7">'#ipdz4'</span>).val()
<a name="l581"><span class="ln">581  </span></a>        <span class="s5">var </span>macdz = $(<span class="s7">'.mac1'</span>).val();
<a name="l582"><span class="ln">582  </span></a>        <span class="s5">var </span>index = ypdx_id_1.lastIndexOf(<span class="s7">&quot;</span><span class="s5">\-</span><span class="s7">&quot;</span>);
<a name="l583"><span class="ln">583  </span></a>        <span class="s5">var </span>ypdx_id_shuzi_1 = ypdx_id_1.substring(index + <span class="s8">1</span>, ypdx_id_1.length);
<a name="l584"><span class="ln">584  </span></a>        <span class="s5">var </span>index = ypdx_id_2.lastIndexOf(<span class="s7">&quot;</span><span class="s5">\-</span><span class="s7">&quot;</span>);
<a name="l585"><span class="ln">585  </span></a>        <span class="s5">var </span>ypdx_id_shuzi_2 = ypdx_id_2.substring(index + <span class="s8">1</span>, ypdx_id_2.length);
<a name="l586"><span class="ln">586  </span></a>        <span class="s5">var </span>index = ypdx_id_3.lastIndexOf(<span class="s7">&quot;</span><span class="s5">\-</span><span class="s7">&quot;</span>);
<a name="l587"><span class="ln">587  </span></a>        <span class="s5">var </span>ypdx_id_shuzi_3 = ypdx_id_3.substring(index + <span class="s8">1</span>, ypdx_id_3.length);
<a name="l588"><span class="ln">588  </span></a>        <span class="s5">if </span>(sbbh_sel == <span class="s7">&quot;&quot;</span>) {
<a name="l589"><span class="ln">589  </span></a>            alert(<span class="s7">&quot;请先选择设备类型&quot;</span>)
<a name="l590"><span class="ln">590  </span></a>            $(<span class="s7">&quot;#sbbh_sel&quot;</span>).focus()
<a name="l591"><span class="ln">591  </span></a>        } <span class="s5">else if </span>(bmid_id == <span class="s7">&quot;&quot;</span>) {
<a name="l592"><span class="ln">592  </span></a>            alert(<span class="s7">&quot;请点击选择部门的下拉框&quot;</span>)
<a name="l593"><span class="ln">593  </span></a>            $(<span class="s7">&quot;#bmid_id&quot;</span>).focus()
<a name="l594"><span class="ln">594  </span></a>        } <span class="s5">else if </span>(gsid == <span class="s7">&quot;&quot;</span>) {
<a name="l595"><span class="ln">595  </span></a>            alert(<span class="s7">&quot;当前状态未登陆系统或浏览器中当前会话结束了，您需要重新登陆&quot;</span>)
<a name="l596"><span class="ln">596  </span></a>            window.location.href = <span class="s7">&quot;/login&quot;</span>;
<a name="l597"><span class="ln">597  </span></a>        } <span class="s5">else if </span>(shiyr_id == <span class="s7">&quot;&quot;</span>) {
<a name="l598"><span class="ln">598  </span></a>            alert(<span class="s7">&quot;请输入姓名的助记码，助记码为拼音首字母&quot;</span>)
<a name="l599"><span class="ln">599  </span></a>            $(<span class="s7">&quot;#shiyr_id&quot;</span>).focus()
<a name="l600"><span class="ln">600  </span></a>        } <span class="s5">else if </span>(bmid_id != <span class="s7">&quot;&quot; </span>&amp;&amp; shiyr_id != <span class="s7">&quot;&quot;</span>) {
<a name="l601"><span class="ln">601  </span></a>            <span class="s5">var </span>xinr = getshiyr()
<a name="l602"><span class="ln">602  </span></a>            <span class="s5">if </span>(sbmc_id == <span class="s7">&quot;&quot;</span>) {
<a name="l603"><span class="ln">603  </span></a>                alert(<span class="s7">&quot;请先选择设备类型后，点击生成设备编号按钮，谢谢您的合作！！！&quot;</span>)
<a name="l604"><span class="ln">604  </span></a>            } <span class="s5">else if </span>(sbbh_id == <span class="s7">&quot;&quot;</span>) {
<a name="l605"><span class="ln">605  </span></a>                alert(<span class="s7">&quot;设备编号是自动生成的，点击生成设备编号按钮&quot;</span>)
<a name="l606"><span class="ln">606  </span></a>            } <span class="s5">else if </span>(guige_id == <span class="s7">&quot;&quot;</span>) {
<a name="l607"><span class="ln">607  </span></a>                alert(<span class="s7">&quot;请输入品牌型号&quot;</span>)
<a name="l608"><span class="ln">608  </span></a>                $(<span class="s7">&quot;#guige_id&quot;</span>).focus()
<a name="l609"><span class="ln">609  </span></a>            } <span class="s5">else if </span>(shccj_id == <span class="s7">&quot;&quot;</span>) {
<a name="l610"><span class="ln">610  </span></a>                alert(<span class="s7">&quot;请输入生产厂家&quot;</span>)
<a name="l611"><span class="ln">611  </span></a>                $(<span class="s7">&quot;#shccj_id&quot;</span>).focus()
<a name="l612"><span class="ln">612  </span></a>            } <span class="s5">else if </span>(gmrq_id == <span class="s7">&quot;&quot;</span>) {
<a name="l613"><span class="ln">613  </span></a>                alert(<span class="s7">&quot;请点击购买日期&quot;</span>)
<a name="l614"><span class="ln">614  </span></a>                $(<span class="s7">&quot;#gmrq_id&quot;</span>).focus()
<a name="l615"><span class="ln">615  </span></a>            } <span class="s5">else if </span>(zbxh_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l616"><span class="ln">616  </span></a>                alert(<span class="s7">&quot;请输入主板型号&quot;</span>)
<a name="l617"><span class="ln">617  </span></a>                $(<span class="s7">&quot;#zbxh_id&quot;</span>).focus()
<a name="l618"><span class="ln">618  </span></a>            } <span class="s5">else if </span>(cpuxh_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l619"><span class="ln">619  </span></a>                alert(<span class="s7">&quot;请输入CPU型号&quot;</span>)
<a name="l620"><span class="ln">620  </span></a>                $(<span class="s7">&quot;#cpuxh_id&quot;</span>).focus()
<a name="l621"><span class="ln">621  </span></a>            } <span class="s5">else if </span>(ncggdx_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l622"><span class="ln">622  </span></a>                alert(<span class="s7">&quot;请输入内存大小&quot;</span>)
<a name="l623"><span class="ln">623  </span></a>                $(<span class="s7">&quot;#ncggdx_id&quot;</span>).focus()
<a name="l624"><span class="ln">624  </span></a>            } <span class="s5">else if </span>(xkxh_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l625"><span class="ln">625  </span></a>                alert(<span class="s7">&quot;请输入显卡型号&quot;</span>)
<a name="l626"><span class="ln">626  </span></a>                $(<span class="s7">&quot;#xkxh_id&quot;</span>).focus()
<a name="l627"><span class="ln">627  </span></a>            } <span class="s5">else if </span>(ypdx_id_1 == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l628"><span class="ln">628  </span></a>                alert(<span class="s7">&quot;请输入硬盘大小&quot;</span>)
<a name="l629"><span class="ln">629  </span></a>                $(<span class="s7">&quot;#ypdx_id_1&quot;</span>).focus()
<a name="l630"><span class="ln">630  </span></a>            } <span class="s5">else if </span>(xsqppcc_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l631"><span class="ln">631  </span></a>                alert(<span class="s7">&quot;请输入显示器大小&quot;</span>)
<a name="l632"><span class="ln">632  </span></a>                $(<span class="s7">&quot;#xsqppcc_id&quot;</span>).focus()
<a name="l633"><span class="ln">633  </span></a>            } <span class="s5">else if </span>(ipdz1 == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l634"><span class="ln">634  </span></a>                alert(<span class="s7">&quot;请输入IP地址&quot;</span>)
<a name="l635"><span class="ln">635  </span></a>                $(<span class="s7">&quot;#ipdz1&quot;</span>).focus()
<a name="l636"><span class="ln">636  </span></a>            } <span class="s5">else if </span>(ipdz2 == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l637"><span class="ln">637  </span></a>                alert(<span class="s7">&quot;请输入IP地址&quot;</span>)
<a name="l638"><span class="ln">638  </span></a>                $(<span class="s7">&quot;#ipdz2&quot;</span>).focus()
<a name="l639"><span class="ln">639  </span></a>            } <span class="s5">else if </span>(ipdz3 == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l640"><span class="ln">640  </span></a>                alert(<span class="s7">&quot;请输入IP地址&quot;</span>)
<a name="l641"><span class="ln">641  </span></a>                $(<span class="s7">&quot;#ipdz3&quot;</span>).focus()
<a name="l642"><span class="ln">642  </span></a>            } <span class="s5">else if </span>(ipdz4 == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l643"><span class="ln">643  </span></a>                alert(<span class="s7">&quot;请输入IP地址&quot;</span>)
<a name="l644"><span class="ln">644  </span></a>                $(<span class="s7">&quot;#ipdz4&quot;</span>).focus()
<a name="l645"><span class="ln">645  </span></a>            } <span class="s5">else if </span>(macdz == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;电脑&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l646"><span class="ln">646  </span></a>                alert(<span class="s7">&quot;请输入MAC物理地址&quot;</span>)
<a name="l647"><span class="ln">647  </span></a>                $(<span class="s7">&quot;.mac1&quot;</span>).focus()
<a name="l648"><span class="ln">648  </span></a>            } <span class="s5">else if </span>(zbxh_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;务器&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l649"><span class="ln">649  </span></a>                alert(<span class="s7">&quot;请输入主板型号&quot;</span>)
<a name="l650"><span class="ln">650  </span></a>                $(<span class="s7">&quot;#zbxh_id&quot;</span>).focus()
<a name="l651"><span class="ln">651  </span></a>            } <span class="s5">else if </span>(cpuxh_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;务器&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l652"><span class="ln">652  </span></a>                alert(<span class="s7">&quot;请输入CPU型号&quot;</span>)
<a name="l653"><span class="ln">653  </span></a>                $(<span class="s7">&quot;#cpuxh_id&quot;</span>).focus()
<a name="l654"><span class="ln">654  </span></a>            } <span class="s5">else if </span>(ncggdx_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;务器&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l655"><span class="ln">655  </span></a>                alert(<span class="s7">&quot;请输入内存大小&quot;</span>)
<a name="l656"><span class="ln">656  </span></a>                $(<span class="s7">&quot;#ncggdx_id&quot;</span>).focus()
<a name="l657"><span class="ln">657  </span></a>            } <span class="s5">else if </span>(xkxh_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;务器&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l658"><span class="ln">658  </span></a>                alert(<span class="s7">&quot;请输入显卡型号&quot;</span>)
<a name="l659"><span class="ln">659  </span></a>                $(<span class="s7">&quot;#xkxh_id&quot;</span>).focus()
<a name="l660"><span class="ln">660  </span></a>            } <span class="s5">else if </span>(ypdx_id_1 == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;务器&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l661"><span class="ln">661  </span></a>                alert(<span class="s7">&quot;请输入硬盘大小&quot;</span>)
<a name="l662"><span class="ln">662  </span></a>                $(<span class="s7">&quot;#ypdx_id_1&quot;</span>).focus()
<a name="l663"><span class="ln">663  </span></a>            } <span class="s5">else if </span>(xsqppcc_id == <span class="s7">&quot;&quot; </span>&amp;&amp; sbmc_id.indexOf(<span class="s7">&quot;务器&quot;</span>) &gt; <span class="s8">0</span>) {
<a name="l664"><span class="ln">664  </span></a>                alert(<span class="s7">&quot;请输入显示器大小&quot;</span>)
<a name="l665"><span class="ln">665  </span></a>                $(<span class="s7">&quot;#xsqppcc_id&quot;</span>).focus()
<a name="l666"><span class="ln">666  </span></a>            } <span class="s5">else if </span>(ypdx_id_shuzi_1 &gt;= <span class="s8">50 </span>&amp;&amp; ypdx_sel_1 == <span class="s7">&quot;T&quot;</span>) {
<a name="l667"><span class="ln">667  </span></a>                alert(<span class="s7">&quot;硬盘1大小以T为单位，请输入的硬盘大小不能大于50T&quot;</span>)
<a name="l668"><span class="ln">668  </span></a>                $(<span class="s7">&quot;#ypdx_id_1&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l669"><span class="ln">669  </span></a>            } <span class="s5">else if </span>(ypdx_id_shuzi_1 &lt;= <span class="s8">80 </span>&amp;&amp; ypdx_sel_1 == <span class="s7">&quot;G&quot;</span>) {
<a name="l670"><span class="ln">670  </span></a>                alert(<span class="s7">&quot;硬盘1大小以G为单位，请输入的硬盘大小必须大于80G&quot;</span>)
<a name="l671"><span class="ln">671  </span></a>                $(<span class="s7">&quot;#ypdx_id_1&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l672"><span class="ln">672  </span></a>            } <span class="s5">else if </span>(ypdx_id_shuzi_2 &gt;= <span class="s8">50 </span>&amp;&amp; ypdx_sel_2 == <span class="s7">&quot;T&quot;</span>) {
<a name="l673"><span class="ln">673  </span></a>                alert(<span class="s7">&quot;硬盘2大小以T为单位，请输入的硬盘大小不能大于50T&quot;</span>)
<a name="l674"><span class="ln">674  </span></a>                $(<span class="s7">&quot;#ypdx_id_2&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l675"><span class="ln">675  </span></a>            } <span class="s5">else if </span>(ypdx_id_shuzi_2 &lt;= <span class="s8">80 </span>&amp;&amp; ypdx_sel_2 == <span class="s7">&quot;G&quot;</span>) {
<a name="l676"><span class="ln">676  </span></a>                alert(<span class="s7">&quot;硬盘2大小以G为单位，请输入的硬盘大小必须大于80G&quot;</span>)
<a name="l677"><span class="ln">677  </span></a>                $(<span class="s7">&quot;#ypdx_id_2&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l678"><span class="ln">678  </span></a>            } <span class="s5">else if </span>(ypdx_id_shuzi_3 &gt;= <span class="s8">50 </span>&amp;&amp; ypdx_sel_3 == <span class="s7">&quot;T&quot;</span>) {
<a name="l679"><span class="ln">679  </span></a>                alert(<span class="s7">&quot;硬盘3大小以T为单位，请输入的硬盘大小不能大于50T&quot;</span>)
<a name="l680"><span class="ln">680  </span></a>                $(<span class="s7">&quot;#ypdx_id_3&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l681"><span class="ln">681  </span></a>            } <span class="s5">else if </span>(ypdx_id_shuzi_3 &lt;= <span class="s8">80 </span>&amp;&amp; ypdx_sel_3 == <span class="s7">&quot;G&quot;</span>) {
<a name="l682"><span class="ln">682  </span></a>                alert(<span class="s7">&quot;硬盘3大小以G为单位，请输入的硬盘大小必须大于80G&quot;</span>)
<a name="l683"><span class="ln">683  </span></a>                $(<span class="s7">&quot;#ypdx_id_3&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l684"><span class="ln">684  </span></a>            } <span class="s5">else if </span>(xinr == <span class="s7">&quot;全公司上下查无此人&quot;</span>) {
<a name="l685"><span class="ln">685  </span></a>                alert(<span class="s7">&quot;你查询的员工信息不在你现在的部门里面，请核对&quot;</span>)
<a name="l686"><span class="ln">686  </span></a>                $(<span class="s7">&quot;#shiyr_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l687"><span class="ln">687  </span></a>                $(<span class="s7">&quot;#shiyr_id&quot;</span>).focus();
<a name="l688"><span class="ln">688  </span></a>            } <span class="s5">else </span>{
<a name="l689"><span class="ln">689  </span></a>                updatesbflb()
<a name="l690"><span class="ln">690  </span></a>                savesbforajax()
<a name="l691"><span class="ln">691  </span></a>            }
<a name="l692"><span class="ln">692  </span></a>        }
<a name="l693"><span class="ln">693  </span></a>    }
<a name="l694"><span class="ln">694  </span></a>
<a name="l695"><span class="ln">695  </span></a>    <span class="s5">function </span>savesbforajax() {
<a name="l696"><span class="ln">696  </span></a>        $.ajax({
<a name="l697"><span class="ln">697  </span></a>            url: <span class="s7">&quot;/sbgl/sbxxb/insertsb&quot;</span>,
<a name="l698"><span class="ln">698  </span></a>            type: <span class="s7">'POST'</span>,
<a name="l699"><span class="ln">699  </span></a>            data: $(<span class="s7">&quot;#form-sb-add&quot;</span>).serialize(),
<a name="l700"><span class="ln">700  </span></a>            success: <span class="s5">function </span>(result) {
<a name="l701"><span class="ln">701  </span></a>                <span class="s5">if </span>(result != <span class="s5">null</span>) {
<a name="l702"><span class="ln">702  </span></a>                    alert(<span class="s7">&quot;添加成功！！！&quot;</span>);
<a name="l703"><span class="ln">703  </span></a>                    window.location.href = <span class="s7">&quot;/sbgl/sbxxb/sbxxb&quot;</span>
<a name="l704"><span class="ln">704  </span></a>                }
<a name="l705"><span class="ln">705  </span></a>            }
<a name="l706"><span class="ln">706  </span></a>        });
<a name="l707"><span class="ln">707  </span></a>    }
<a name="l708"><span class="ln">708  </span></a>
<a name="l709"><span class="ln">709  </span></a>    <span class="s5">function </span>xsqxx() {
<a name="l710"><span class="ln">710  </span></a>        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'hide'</span>);
<a name="l711"><span class="ln">711  </span></a>        $(<span class="s7">&quot;#xsqppcc&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l712"><span class="ln">712  </span></a>        $.confirm({
<a name="l713"><span class="ln">713  </span></a>            title: <span class="s7">'显示器品牌尺寸信息'</span>,
<a name="l714"><span class="ln">714  </span></a>            content: <span class="s7">'' </span>+
<a name="l715"><span class="ln">715  </span></a>                <span class="s7">'&lt;form action=&quot;&quot; class=&quot;formName&quot;&gt;' </span>+
<a name="l716"><span class="ln">716  </span></a>                <span class="s7">'&lt;div class=&quot;form-group&quot;&gt;' </span>+
<a name="l717"><span class="ln">717  </span></a>                <span class="s7">'&lt;label&gt;请输入显示器品牌，点击下拉框选择显示器尺寸大小&lt;/label&gt;' </span>+
<a name="l718"><span class="ln">718  </span></a>                <span class="s9">// '&lt;input id=&quot;xsqpp&quot; class=&quot;xsqpp form-control&quot; list=&quot;browsersforxsq&quot; placeholder=&quot;品牌助记码&quot;&gt;'+</span>
<a name="l719"><span class="ln">719  </span></a>                // '&lt;datalist id=&quot;browsersforxsq&quot;&gt;&lt;/datalist&gt;'+
<a name="l720"><span class="ln">720  </span></a>                <span class="s7">'&lt;input id=&quot;xsqpp&quot; class=&quot;xsqpp form-control&quot; placeholder=&quot;请输入显示器品牌&quot;&gt;' </span>+
<a name="l721"><span class="ln">721  </span></a>                <span class="s7">'&lt;select id=&quot;xsqcc&quot; class=&quot;xsqcc form-control&quot;&gt;&lt;option value=&quot;&quot;&gt;请选择显示器尺寸&lt;/option&gt;&lt;option value=&quot;13寸&quot;&gt;13寸&lt;/option&gt;&lt;option value=&quot;14寸&quot;&gt;14寸&lt;/option&gt;&lt;option value=&quot;15寸&quot;&gt;15寸&lt;/option&gt;&lt;option value=&quot;17寸&quot;&gt;17寸&lt;/option&gt;&lt;option value=&quot;19寸&quot;&gt;19寸&lt;/option&gt;&lt;option value=&quot;19.5寸&quot;&gt;19.5寸&lt;/option&gt;&lt;option value=&quot;20寸&quot;&gt;20寸&lt;/option&gt;&lt;option value=&quot;23.5寸&quot;&gt;23.5寸&lt;/option&gt;&lt;option value=&quot;24寸&quot;&gt;24寸&lt;/option&gt;&lt;option value=&quot;25寸&quot;&gt;25寸&lt;/option&gt;&lt;option value=&quot;G&quot;&gt;27寸&lt;/option&gt;&lt;/select&gt;' </span>+
<a name="l722"><span class="ln">722  </span></a>                <span class="s7">'&lt;/div&gt;' </span>+
<a name="l723"><span class="ln">723  </span></a>                <span class="s7">'&lt;/form&gt;'</span>,
<a name="l724"><span class="ln">724  </span></a>            buttons: {
<a name="l725"><span class="ln">725  </span></a>                qdformSubmit: {
<a name="l726"><span class="ln">726  </span></a>                    text: <span class="s7">'确定'</span>,
<a name="l727"><span class="ln">727  </span></a>                    btnClass: <span class="s7">'btn-blue'</span>,
<a name="l728"><span class="ln">728  </span></a>                    action: <span class="s5">function </span>() {
<a name="l729"><span class="ln">729  </span></a>                        <span class="s5">var </span>xsqpp = <span class="s5">this</span>.$content.find(<span class="s7">'.xsqpp'</span>).val();
<a name="l730"><span class="ln">730  </span></a>                        <span class="s5">var </span>xsqcc = <span class="s5">this</span>.$content.find(<span class="s7">'.xsqcc'</span>).val();
<a name="l731"><span class="ln">731  </span></a>                        <span class="s5">if </span>(!xsqpp) {
<a name="l732"><span class="ln">732  </span></a>                            $.alert(<span class="s7">'请输入显示器品牌'</span>);
<a name="l733"><span class="ln">733  </span></a>                            <span class="s5">return false</span>;
<a name="l734"><span class="ln">734  </span></a>                        }
<a name="l735"><span class="ln">735  </span></a>                        <span class="s5">if </span>(!xsqcc) {
<a name="l736"><span class="ln">736  </span></a>                            $.alert(<span class="s7">'请选择显示器尺寸大小'</span>);
<a name="l737"><span class="ln">737  </span></a>                            <span class="s5">return false</span>;
<a name="l738"><span class="ln">738  </span></a>                        }
<a name="l739"><span class="ln">739  </span></a>                        $(<span class="s7">&quot;#xsqppcc_id&quot;</span>).val(xsqpp + <span class="s7">&quot;-&quot; </span>+ xsqcc);
<a name="l740"><span class="ln">740  </span></a>                        <span class="s5">this</span>.close()
<a name="l741"><span class="ln">741  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l742"><span class="ln">742  </span></a>                    }
<a name="l743"><span class="ln">743  </span></a>                },
<a name="l744"><span class="ln">744  </span></a>                cancel: {
<a name="l745"><span class="ln">745  </span></a>                    text: <span class="s7">'取消'</span>,
<a name="l746"><span class="ln">746  </span></a>                    btnClass: <span class="s7">'btn-red'</span>,
<a name="l747"><span class="ln">747  </span></a>                    action: <span class="s5">function </span>() {
<a name="l748"><span class="ln">748  </span></a>                        <span class="s9">//close</span>
<a name="l749"><span class="ln">749  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l750"><span class="ln">750  </span></a>                    },
<a name="l751"><span class="ln">751  </span></a>                },
<a name="l752"><span class="ln">752  </span></a>            },
<a name="l753"><span class="ln">753  </span></a>        });
<a name="l754"><span class="ln">754  </span></a>    }
<a name="l755"><span class="ln">755  </span></a>
<a name="l756"><span class="ln">756  </span></a>    $(<span class="s7">'#xsqcc_btn'</span>).click(<span class="s5">function </span>() {
<a name="l757"><span class="ln">757  </span></a>        xsqxx()
<a name="l758"><span class="ln">758  </span></a>    });
<a name="l759"><span class="ln">759  </span></a>
<a name="l760"><span class="ln">760  </span></a>
<a name="l761"><span class="ln">761  </span></a>    <span class="s5">var </span>jxyp = <span class="s7">&quot;机械-&quot;</span>;
<a name="l762"><span class="ln">762  </span></a>    <span class="s5">var </span>gtyp = <span class="s7">&quot;固态-&quot;</span>;
<a name="l763"><span class="ln">763  </span></a>
<a name="l764"><span class="ln">764  </span></a>    <span class="s5">function </span>ypdx_1() {
<a name="l765"><span class="ln">765  </span></a>        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'hide'</span>);
<a name="l766"><span class="ln">766  </span></a>        $(<span class="s7">&quot;#ypdx_id_1&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l767"><span class="ln">767  </span></a>        $.confirm({
<a name="l768"><span class="ln">768  </span></a>            title: <span class="s7">'硬盘一信息'</span>,
<a name="l769"><span class="ln">769  </span></a>            content: <span class="s7">'' </span>+
<a name="l770"><span class="ln">770  </span></a>                <span class="s7">'&lt;form action=&quot;&quot; class=&quot;formName&quot;&gt;' </span>+
<a name="l771"><span class="ln">771  </span></a>                <span class="s7">'&lt;div class=&quot;form-group&quot;&gt;' </span>+
<a name="l772"><span class="ln">772  </span></a>                <span class="s7">'&lt;label&gt;请先输入硬盘大小后，点击下拉框选择硬盘单位&lt;/label&gt;' </span>+
<a name="l773"><span class="ln">773  </span></a>                <span class="s7">'&lt;input type=&quot;text&quot; placeholder=&quot;请输入硬盘大小，注意单位&quot; class=&quot;name form-control&quot;/&gt;' </span>+
<a name="l774"><span class="ln">774  </span></a>                <span class="s7">'&lt;select class=&quot;ypdx form-control&quot;&gt;&lt;option value=&quot;T&quot;&gt;T&lt;/option&gt;&lt;option value=&quot;G&quot;&gt;G&lt;/option&gt; &lt;/select&gt;' </span>+
<a name="l775"><span class="ln">775  </span></a>                <span class="s7">'&lt;/div&gt;' </span>+
<a name="l776"><span class="ln">776  </span></a>                <span class="s7">'&lt;/form&gt;'</span>,
<a name="l777"><span class="ln">777  </span></a>            buttons: {
<a name="l778"><span class="ln">778  </span></a>                jxypformSubmit: {
<a name="l779"><span class="ln">779  </span></a>                    text: <span class="s7">'机械硬盘'</span>,
<a name="l780"><span class="ln">780  </span></a>                    btnClass: <span class="s7">'btn-blue'</span>,
<a name="l781"><span class="ln">781  </span></a>                    action: <span class="s5">function </span>() {
<a name="l782"><span class="ln">782  </span></a>                        <span class="s5">var </span>name = <span class="s5">this</span>.$content.find(<span class="s7">'.name'</span>).val();
<a name="l783"><span class="ln">783  </span></a>                        <span class="s5">var </span>ypdx = <span class="s5">this</span>.$content.find(<span class="s7">'.ypdx'</span>).val();
<a name="l784"><span class="ln">784  </span></a>                        <span class="s5">if </span>(!name) {
<a name="l785"><span class="ln">785  </span></a>                            $.alert(<span class="s7">'硬盘空间大小不能为空'</span>);
<a name="l786"><span class="ln">786  </span></a>                            <span class="s5">return false</span>;
<a name="l787"><span class="ln">787  </span></a>                        }
<a name="l788"><span class="ln">788  </span></a>                        <span class="s5">if </span>(name &lt;= <span class="s8">80 </span>&amp;&amp; ypdx == <span class="s7">&quot;G&quot;</span>) {
<a name="l789"><span class="ln">789  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为G，填写的硬盘大小不能小于80G'</span>);
<a name="l790"><span class="ln">790  </span></a>                            <span class="s5">return false</span>;
<a name="l791"><span class="ln">791  </span></a>                        }
<a name="l792"><span class="ln">792  </span></a>                        <span class="s5">if </span>(name &gt;= <span class="s8">50 </span>&amp;&amp; ypdx == <span class="s7">&quot;T&quot;</span>) {
<a name="l793"><span class="ln">793  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为T，填写的硬盘大小不能大于50T'</span>);
<a name="l794"><span class="ln">794  </span></a>                            <span class="s5">return false</span>;
<a name="l795"><span class="ln">795  </span></a>                        }
<a name="l796"><span class="ln">796  </span></a>                        $(<span class="s7">&quot;#ypdx_id_1&quot;</span>).val(jxyp + name + ypdx);
<a name="l797"><span class="ln">797  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l798"><span class="ln">798  </span></a>                    }
<a name="l799"><span class="ln">799  </span></a>                },
<a name="l800"><span class="ln">800  </span></a>
<a name="l801"><span class="ln">801  </span></a>                gtypformSubmit: {
<a name="l802"><span class="ln">802  </span></a>                    text: <span class="s7">'固态硬盘'</span>,
<a name="l803"><span class="ln">803  </span></a>                    btnClass: <span class="s7">'btn-green'</span>,
<a name="l804"><span class="ln">804  </span></a>                    action: <span class="s5">function </span>() {
<a name="l805"><span class="ln">805  </span></a>                        <span class="s5">var </span>name = <span class="s5">this</span>.$content.find(<span class="s7">'.name'</span>).val();
<a name="l806"><span class="ln">806  </span></a>                        <span class="s5">var </span>ypdx = <span class="s5">this</span>.$content.find(<span class="s7">'.ypdx'</span>).val();
<a name="l807"><span class="ln">807  </span></a>                        <span class="s5">if </span>(!name) {
<a name="l808"><span class="ln">808  </span></a>                            $.alert(<span class="s7">'provide a valid name'</span>);
<a name="l809"><span class="ln">809  </span></a>                            <span class="s5">return false</span>;
<a name="l810"><span class="ln">810  </span></a>                        }
<a name="l811"><span class="ln">811  </span></a>                        <span class="s5">if </span>(name &lt;= <span class="s8">80 </span>&amp;&amp; ypdx == <span class="s7">&quot;G&quot;</span>) {
<a name="l812"><span class="ln">812  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为G，填写的硬盘大小不能小于80G'</span>);
<a name="l813"><span class="ln">813  </span></a>                            <span class="s5">return false</span>;
<a name="l814"><span class="ln">814  </span></a>                        }
<a name="l815"><span class="ln">815  </span></a>                        <span class="s5">if </span>(name &gt;= <span class="s8">50 </span>&amp;&amp; ypdx == <span class="s7">&quot;T&quot;</span>) {
<a name="l816"><span class="ln">816  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为T，填写的硬盘大小不能大于50T'</span>);
<a name="l817"><span class="ln">817  </span></a>                            <span class="s5">return false</span>;
<a name="l818"><span class="ln">818  </span></a>                        }
<a name="l819"><span class="ln">819  </span></a>                        $(<span class="s7">&quot;#ypdx_id_1&quot;</span>).val(gtyp + name + ypdx);
<a name="l820"><span class="ln">820  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l821"><span class="ln">821  </span></a>                    }
<a name="l822"><span class="ln">822  </span></a>                },
<a name="l823"><span class="ln">823  </span></a>                cancel: {
<a name="l824"><span class="ln">824  </span></a>                    text: <span class="s7">'取消'</span>,
<a name="l825"><span class="ln">825  </span></a>                    btnClass: <span class="s7">'btn-red'</span>,
<a name="l826"><span class="ln">826  </span></a>                    action: <span class="s5">function </span>() {
<a name="l827"><span class="ln">827  </span></a>                        <span class="s9">//close</span>
<a name="l828"><span class="ln">828  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l829"><span class="ln">829  </span></a>                    },
<a name="l830"><span class="ln">830  </span></a>                },
<a name="l831"><span class="ln">831  </span></a>            },
<a name="l832"><span class="ln">832  </span></a>        });
<a name="l833"><span class="ln">833  </span></a>    }
<a name="l834"><span class="ln">834  </span></a>
<a name="l835"><span class="ln">835  </span></a>    $(<span class="s7">'#ypdx_btn_1'</span>).click(<span class="s5">function </span>() {
<a name="l836"><span class="ln">836  </span></a>        ypdx_1()
<a name="l837"><span class="ln">837  </span></a>    });
<a name="l838"><span class="ln">838  </span></a>
<a name="l839"><span class="ln">839  </span></a>    <span class="s5">function </span>ypdx_2() {
<a name="l840"><span class="ln">840  </span></a>        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'hide'</span>);
<a name="l841"><span class="ln">841  </span></a>        $(<span class="s7">&quot;#ypdx_id_2&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l842"><span class="ln">842  </span></a>        $.confirm({
<a name="l843"><span class="ln">843  </span></a>            title: <span class="s7">'硬盘一信息'</span>,
<a name="l844"><span class="ln">844  </span></a>            content: <span class="s7">'' </span>+
<a name="l845"><span class="ln">845  </span></a>                <span class="s7">'&lt;form action=&quot;&quot; class=&quot;formName&quot;&gt;' </span>+
<a name="l846"><span class="ln">846  </span></a>                <span class="s7">'&lt;div class=&quot;form-group&quot;&gt;' </span>+
<a name="l847"><span class="ln">847  </span></a>                <span class="s7">'&lt;label&gt;请先输入硬盘大小后，点击下拉框选择硬盘单位&lt;/label&gt;' </span>+
<a name="l848"><span class="ln">848  </span></a>                <span class="s7">'&lt;input type=&quot;text&quot; placeholder=&quot;请输入硬盘大小，注意单位&quot; class=&quot;name form-control&quot;/&gt;' </span>+
<a name="l849"><span class="ln">849  </span></a>                <span class="s7">'&lt;select class=&quot;ypdx form-control&quot;&gt;&lt;option value=&quot;T&quot;&gt;T&lt;/option&gt;&lt;option value=&quot;G&quot;&gt;G&lt;/option&gt; &lt;/select&gt;' </span>+
<a name="l850"><span class="ln">850  </span></a>                <span class="s7">'&lt;/div&gt;' </span>+
<a name="l851"><span class="ln">851  </span></a>                <span class="s7">'&lt;/form&gt;'</span>,
<a name="l852"><span class="ln">852  </span></a>            buttons: {
<a name="l853"><span class="ln">853  </span></a>                jxypformSubmit: {
<a name="l854"><span class="ln">854  </span></a>                    text: <span class="s7">'机械硬盘'</span>,
<a name="l855"><span class="ln">855  </span></a>                    btnClass: <span class="s7">'btn-blue'</span>,
<a name="l856"><span class="ln">856  </span></a>                    action: <span class="s5">function </span>() {
<a name="l857"><span class="ln">857  </span></a>                        <span class="s5">var </span>name = <span class="s5">this</span>.$content.find(<span class="s7">'.name'</span>).val();
<a name="l858"><span class="ln">858  </span></a>                        <span class="s5">var </span>ypdx = <span class="s5">this</span>.$content.find(<span class="s7">'.ypdx'</span>).val();
<a name="l859"><span class="ln">859  </span></a>                        <span class="s5">if </span>(!name) {
<a name="l860"><span class="ln">860  </span></a>                            $.alert(<span class="s7">'硬盘空间大小不能为空'</span>);
<a name="l861"><span class="ln">861  </span></a>                            <span class="s5">return false</span>;
<a name="l862"><span class="ln">862  </span></a>                        }
<a name="l863"><span class="ln">863  </span></a>                        <span class="s5">if </span>(name &lt;= <span class="s8">80 </span>&amp;&amp; ypdx == <span class="s7">&quot;G&quot;</span>) {
<a name="l864"><span class="ln">864  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为G，填写的硬盘大小不能小于80G'</span>);
<a name="l865"><span class="ln">865  </span></a>                            <span class="s5">return false</span>;
<a name="l866"><span class="ln">866  </span></a>                        }
<a name="l867"><span class="ln">867  </span></a>                        <span class="s5">if </span>(name &gt;= <span class="s8">50 </span>&amp;&amp; ypdx == <span class="s7">&quot;T&quot;</span>) {
<a name="l868"><span class="ln">868  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为T，填写的硬盘大小不能大于50T'</span>);
<a name="l869"><span class="ln">869  </span></a>                            <span class="s5">return false</span>;
<a name="l870"><span class="ln">870  </span></a>                        }
<a name="l871"><span class="ln">871  </span></a>                        $(<span class="s7">&quot;#ypdx_id_2&quot;</span>).val(jxyp + name + ypdx);
<a name="l872"><span class="ln">872  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l873"><span class="ln">873  </span></a>                    }
<a name="l874"><span class="ln">874  </span></a>                },
<a name="l875"><span class="ln">875  </span></a>
<a name="l876"><span class="ln">876  </span></a>                gtypformSubmit: {
<a name="l877"><span class="ln">877  </span></a>                    text: <span class="s7">'固态硬盘'</span>,
<a name="l878"><span class="ln">878  </span></a>                    btnClass: <span class="s7">'btn-green'</span>,
<a name="l879"><span class="ln">879  </span></a>                    action: <span class="s5">function </span>() {
<a name="l880"><span class="ln">880  </span></a>                        <span class="s5">var </span>name = <span class="s5">this</span>.$content.find(<span class="s7">'.name'</span>).val();
<a name="l881"><span class="ln">881  </span></a>                        <span class="s5">var </span>ypdx = <span class="s5">this</span>.$content.find(<span class="s7">'.ypdx'</span>).val();
<a name="l882"><span class="ln">882  </span></a>                        <span class="s5">if </span>(!name) {
<a name="l883"><span class="ln">883  </span></a>                            $.alert(<span class="s7">'provide a valid name'</span>);
<a name="l884"><span class="ln">884  </span></a>                            <span class="s5">return false</span>;
<a name="l885"><span class="ln">885  </span></a>                        }
<a name="l886"><span class="ln">886  </span></a>                        <span class="s5">if </span>(name &lt;= <span class="s8">80 </span>&amp;&amp; ypdx == <span class="s7">&quot;G&quot;</span>) {
<a name="l887"><span class="ln">887  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为G，填写的硬盘大小不能小于80G'</span>);
<a name="l888"><span class="ln">888  </span></a>                            <span class="s5">return false</span>;
<a name="l889"><span class="ln">889  </span></a>                        }
<a name="l890"><span class="ln">890  </span></a>                        <span class="s5">if </span>(name &gt;= <span class="s8">50 </span>&amp;&amp; ypdx == <span class="s7">&quot;T&quot;</span>) {
<a name="l891"><span class="ln">891  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为T，填写的硬盘大小不能大于50T'</span>);
<a name="l892"><span class="ln">892  </span></a>                            <span class="s5">return false</span>;
<a name="l893"><span class="ln">893  </span></a>                        }
<a name="l894"><span class="ln">894  </span></a>                        $(<span class="s7">&quot;#ypdx_id_2&quot;</span>).val(gtyp + name + ypdx);
<a name="l895"><span class="ln">895  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l896"><span class="ln">896  </span></a>                    }
<a name="l897"><span class="ln">897  </span></a>                },
<a name="l898"><span class="ln">898  </span></a>                cancel: {
<a name="l899"><span class="ln">899  </span></a>                    text: <span class="s7">'取消'</span>,
<a name="l900"><span class="ln">900  </span></a>                    btnClass: <span class="s7">'btn-red'</span>,
<a name="l901"><span class="ln">901  </span></a>                    action: <span class="s5">function </span>() {
<a name="l902"><span class="ln">902  </span></a>                        <span class="s9">//close</span>
<a name="l903"><span class="ln">903  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l904"><span class="ln">904  </span></a>                    },
<a name="l905"><span class="ln">905  </span></a>                },
<a name="l906"><span class="ln">906  </span></a>            },
<a name="l907"><span class="ln">907  </span></a>        });
<a name="l908"><span class="ln">908  </span></a>    }
<a name="l909"><span class="ln">909  </span></a>
<a name="l910"><span class="ln">910  </span></a>    $(<span class="s7">'#ypdx_btn_2'</span>).click(<span class="s5">function </span>() {
<a name="l911"><span class="ln">911  </span></a>        ypdx_2()
<a name="l912"><span class="ln">912  </span></a>    });
<a name="l913"><span class="ln">913  </span></a>
<a name="l914"><span class="ln">914  </span></a>    <span class="s5">function </span>ypdx_3() {
<a name="l915"><span class="ln">915  </span></a>        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'hide'</span>);
<a name="l916"><span class="ln">916  </span></a>        $(<span class="s7">&quot;#ypdx_id_3&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l917"><span class="ln">917  </span></a>        $.confirm({
<a name="l918"><span class="ln">918  </span></a>            title: <span class="s7">'硬盘一信息'</span>,
<a name="l919"><span class="ln">919  </span></a>            content: <span class="s7">'' </span>+
<a name="l920"><span class="ln">920  </span></a>                <span class="s7">'&lt;form action=&quot;&quot; class=&quot;formName&quot;&gt;' </span>+
<a name="l921"><span class="ln">921  </span></a>                <span class="s7">'&lt;div class=&quot;form-group&quot;&gt;' </span>+
<a name="l922"><span class="ln">922  </span></a>                <span class="s7">'&lt;label&gt;请先输入硬盘大小后，点击下拉框选择硬盘单位&lt;/label&gt;' </span>+
<a name="l923"><span class="ln">923  </span></a>                <span class="s7">'&lt;input type=&quot;text&quot; placeholder=&quot;请输入硬盘大小，注意单位&quot; class=&quot;name form-control&quot;/&gt;' </span>+
<a name="l924"><span class="ln">924  </span></a>                <span class="s7">'&lt;select class=&quot;ypdx form-control&quot;&gt;&lt;option value=&quot;T&quot;&gt;T&lt;/option&gt;&lt;option value=&quot;G&quot;&gt;G&lt;/option&gt; &lt;/select&gt;' </span>+
<a name="l925"><span class="ln">925  </span></a>                <span class="s7">'&lt;/div&gt;' </span>+
<a name="l926"><span class="ln">926  </span></a>                <span class="s7">'&lt;/form&gt;'</span>,
<a name="l927"><span class="ln">927  </span></a>            buttons: {
<a name="l928"><span class="ln">928  </span></a>                jxypformSubmit: {
<a name="l929"><span class="ln">929  </span></a>                    text: <span class="s7">'机械硬盘'</span>,
<a name="l930"><span class="ln">930  </span></a>                    btnClass: <span class="s7">'btn-blue'</span>,
<a name="l931"><span class="ln">931  </span></a>                    action: <span class="s5">function </span>() {
<a name="l932"><span class="ln">932  </span></a>                        <span class="s5">var </span>name = <span class="s5">this</span>.$content.find(<span class="s7">'.name'</span>).val();
<a name="l933"><span class="ln">933  </span></a>                        <span class="s5">var </span>ypdx = <span class="s5">this</span>.$content.find(<span class="s7">'.ypdx'</span>).val();
<a name="l934"><span class="ln">934  </span></a>                        <span class="s5">if </span>(!name) {
<a name="l935"><span class="ln">935  </span></a>                            $.alert(<span class="s7">'硬盘空间大小不能为空'</span>);
<a name="l936"><span class="ln">936  </span></a>                            <span class="s5">return false</span>;
<a name="l937"><span class="ln">937  </span></a>                        }
<a name="l938"><span class="ln">938  </span></a>                        <span class="s5">if </span>(name &lt;= <span class="s8">80 </span>&amp;&amp; ypdx == <span class="s7">&quot;G&quot;</span>) {
<a name="l939"><span class="ln">939  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为G，填写的硬盘大小不能小于80G'</span>);
<a name="l940"><span class="ln">940  </span></a>                            <span class="s5">return false</span>;
<a name="l941"><span class="ln">941  </span></a>                        }
<a name="l942"><span class="ln">942  </span></a>                        <span class="s5">if </span>(name &gt;= <span class="s8">50 </span>&amp;&amp; ypdx == <span class="s7">&quot;T&quot;</span>) {
<a name="l943"><span class="ln">943  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为T，填写的硬盘大小不能大于50T'</span>);
<a name="l944"><span class="ln">944  </span></a>                            <span class="s5">return false</span>;
<a name="l945"><span class="ln">945  </span></a>                        }
<a name="l946"><span class="ln">946  </span></a>                        $(<span class="s7">&quot;#ypdx_id_3&quot;</span>).val(jxyp + name + ypdx);
<a name="l947"><span class="ln">947  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l948"><span class="ln">948  </span></a>                    }
<a name="l949"><span class="ln">949  </span></a>                },
<a name="l950"><span class="ln">950  </span></a>
<a name="l951"><span class="ln">951  </span></a>                gtypformSubmit: {
<a name="l952"><span class="ln">952  </span></a>                    text: <span class="s7">'固态硬盘'</span>,
<a name="l953"><span class="ln">953  </span></a>                    btnClass: <span class="s7">'btn-green'</span>,
<a name="l954"><span class="ln">954  </span></a>                    action: <span class="s5">function </span>() {
<a name="l955"><span class="ln">955  </span></a>                        <span class="s5">var </span>name = <span class="s5">this</span>.$content.find(<span class="s7">'.name'</span>).val();
<a name="l956"><span class="ln">956  </span></a>                        <span class="s5">var </span>ypdx = <span class="s5">this</span>.$content.find(<span class="s7">'.ypdx'</span>).val();
<a name="l957"><span class="ln">957  </span></a>                        <span class="s5">if </span>(!name) {
<a name="l958"><span class="ln">958  </span></a>                            $.alert(<span class="s7">'provide a valid name'</span>);
<a name="l959"><span class="ln">959  </span></a>                            <span class="s5">return false</span>;
<a name="l960"><span class="ln">960  </span></a>                        }
<a name="l961"><span class="ln">961  </span></a>                        <span class="s5">if </span>(name &lt;= <span class="s8">80 </span>&amp;&amp; ypdx == <span class="s7">&quot;G&quot;</span>) {
<a name="l962"><span class="ln">962  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为G，填写的硬盘大小不能小于80G'</span>);
<a name="l963"><span class="ln">963  </span></a>                            <span class="s5">return false</span>;
<a name="l964"><span class="ln">964  </span></a>                        }
<a name="l965"><span class="ln">965  </span></a>                        <span class="s5">if </span>(name &gt;= <span class="s8">50 </span>&amp;&amp; ypdx == <span class="s7">&quot;T&quot;</span>) {
<a name="l966"><span class="ln">966  </span></a>                            $.alert(<span class="s7">'硬盘空间单位为T，填写的硬盘大小不能大于50T'</span>);
<a name="l967"><span class="ln">967  </span></a>                            <span class="s5">return false</span>;
<a name="l968"><span class="ln">968  </span></a>                        }
<a name="l969"><span class="ln">969  </span></a>                        $(<span class="s7">&quot;#ypdx_id_3&quot;</span>).val(gtyp + name + ypdx);
<a name="l970"><span class="ln">970  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l971"><span class="ln">971  </span></a>                    }
<a name="l972"><span class="ln">972  </span></a>                },
<a name="l973"><span class="ln">973  </span></a>                cancel: {
<a name="l974"><span class="ln">974  </span></a>                    text: <span class="s7">'取消'</span>,
<a name="l975"><span class="ln">975  </span></a>                    btnClass: <span class="s7">'btn-red'</span>,
<a name="l976"><span class="ln">976  </span></a>                    action: <span class="s5">function </span>() {
<a name="l977"><span class="ln">977  </span></a>                        <span class="s9">//close</span>
<a name="l978"><span class="ln">978  </span></a>                        $(<span class="s7">'#sbAddModal'</span>).modal(<span class="s7">'show'</span>);
<a name="l979"><span class="ln">979  </span></a>                    },
<a name="l980"><span class="ln">980  </span></a>                },
<a name="l981"><span class="ln">981  </span></a>            }
<a name="l982"><span class="ln">982  </span></a>        });
<a name="l983"><span class="ln">983  </span></a>    }
<a name="l984"><span class="ln">984  </span></a>
<a name="l985"><span class="ln">985  </span></a>    $(<span class="s7">'#ypdx_btn_3'</span>).click(<span class="s5">function </span>() {
<a name="l986"><span class="ln">986  </span></a>        ypdx_3()
<a name="l987"><span class="ln">987  </span></a>    });
<a name="l988"><span class="ln">988  </span></a>
<a name="l989"><span class="ln">989  </span></a>    <span class="s9">/**</span>
<a name="l990"><span class="ln">990  </span></a>     * 当ip和Mac有初始值时，将其拆开，显示在每一个文本框中
<a name="l991"><span class="ln">991  </span></a>     * */
<a name="l992"><span class="ln">992  </span></a>        //添加 Mac
<a name="l993"><span class="ln">993  </span></a>    <span class="s5">var </span>macShow = <span class="s7">&quot;&quot;</span>;
<a name="l994"><span class="ln">994  </span></a>    <span class="s5">var </span>resultMac = macShow.split(<span class="s7">&quot;:&quot;</span>);
<a name="l995"><span class="ln">995  </span></a>    $(<span class="s7">&quot;#macdz_id&gt;.mac1&quot;</span>).val(resultMac[<span class="s8">0</span>]);
<a name="l996"><span class="ln">996  </span></a>    $(<span class="s7">&quot;#macdz_id&gt;.mac2&quot;</span>).val(resultMac[<span class="s8">1</span>]);
<a name="l997"><span class="ln">997  </span></a>    $(<span class="s7">&quot;#macdz_id&gt;.mac3&quot;</span>).val(resultMac[<span class="s8">2</span>]);
<a name="l998"><span class="ln">998  </span></a>    $(<span class="s7">&quot;#macdz_id&gt;.mac4&quot;</span>).val(resultMac[<span class="s8">3</span>]);
<a name="l999"><span class="ln">999  </span></a>    $(<span class="s7">&quot;#macdz_id&gt;.mac5&quot;</span>).val(resultMac[<span class="s8">4</span>]);
<a name="l1000"><span class="ln">1000 </span></a>    $(<span class="s7">&quot;#macdz_id&gt;.mac6&quot;</span>).val(resultMac[<span class="s8">5</span>]);
<a name="l1001"><span class="ln">1001 </span></a>
<a name="l1002"><span class="ln">1002 </span></a>    <span class="s9">// 添加ip</span>
<a name="l1003"><span class="ln">1003 </span></a>    <span class="s5">var </span>ipShow = <span class="s7">&quot;&quot;</span>;
<a name="l1004"><span class="ln">1004 </span></a>    <span class="s5">var </span>resultIp = ipShow.split(<span class="s7">&quot;.&quot;</span>);
<a name="l1005"><span class="ln">1005 </span></a>    $(<span class="s7">&quot;#ipdz_id&gt;.ip1&quot;</span>).val(resultIp[<span class="s8">0</span>]);
<a name="l1006"><span class="ln">1006 </span></a>    $(<span class="s7">&quot;#ipdz_id&gt;.ip2&quot;</span>).val(resultIp[<span class="s8">1</span>]);
<a name="l1007"><span class="ln">1007 </span></a>    $(<span class="s7">&quot;#ipdz_id&gt;.ip3&quot;</span>).val(resultIp[<span class="s8">2</span>]);
<a name="l1008"><span class="ln">1008 </span></a>    $(<span class="s7">&quot;#ipdz_id&gt;.ip4&quot;</span>).val(resultIp[<span class="s8">3</span>]);
<a name="l1009"><span class="ln">1009 </span></a>
<a name="l1010"><span class="ln">1010 </span></a>    <span class="s9">/**</span>
<a name="l1011"><span class="ln">1011 </span></a>     * mac发生变化时调用即可
<a name="l1012"><span class="ln">1012 </span></a>     * 将每一个小格中的值获取到传给后台
<a name="l1013"><span class="ln">1013 </span></a>     * 如果小格中没有值则传空值，有值则传value值，并在后面加上：封号，最后一个不用加
<a name="l1014"><span class="ln">1014 </span></a>     * */
<a name="l1015"><span class="ln">1015 </span></a>    <span class="s5">function </span>macc() {
<a name="l1016"><span class="ln">1016 </span></a>        <span class="s5">var </span>mac1, mac2, mac3, mac4, mac5, mac6;
<a name="l1017"><span class="ln">1017 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#macdz_id&gt;.mac1&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1018"><span class="ln">1018 </span></a>            mac1 = <span class="s7">''</span>;
<a name="l1019"><span class="ln">1019 </span></a>        } <span class="s5">else </span>{
<a name="l1020"><span class="ln">1020 </span></a>            mac1 = $(<span class="s7">&quot;#macdz_id&gt;.mac1&quot;</span>).val() + <span class="s7">'-'</span>;
<a name="l1021"><span class="ln">1021 </span></a>        }
<a name="l1022"><span class="ln">1022 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#macdz_id&gt;.mac2&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1023"><span class="ln">1023 </span></a>            mac2 = <span class="s7">''</span>;
<a name="l1024"><span class="ln">1024 </span></a>        } <span class="s5">else </span>{
<a name="l1025"><span class="ln">1025 </span></a>            mac2 = $(<span class="s7">&quot;#macdz_id&gt;.mac2&quot;</span>).val() + <span class="s7">'-'</span>;
<a name="l1026"><span class="ln">1026 </span></a>        }
<a name="l1027"><span class="ln">1027 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#macdz_id&gt;.mac3&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1028"><span class="ln">1028 </span></a>            mac3 = <span class="s7">''</span>;
<a name="l1029"><span class="ln">1029 </span></a>        } <span class="s5">else </span>{
<a name="l1030"><span class="ln">1030 </span></a>            mac3 = $(<span class="s7">&quot;#macdz_id&gt;.mac3&quot;</span>).val() + <span class="s7">'-'</span>;
<a name="l1031"><span class="ln">1031 </span></a>        }
<a name="l1032"><span class="ln">1032 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#macdz_id&gt;.mac4&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1033"><span class="ln">1033 </span></a>            mac4 = <span class="s7">''</span>;
<a name="l1034"><span class="ln">1034 </span></a>        } <span class="s5">else </span>{
<a name="l1035"><span class="ln">1035 </span></a>            mac4 = $(<span class="s7">&quot;#macdz_id&gt;.mac4&quot;</span>).val() + <span class="s7">'-'</span>;
<a name="l1036"><span class="ln">1036 </span></a>        }
<a name="l1037"><span class="ln">1037 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#macdz_id&gt;.mac5&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1038"><span class="ln">1038 </span></a>            mac5 = <span class="s7">''</span>;
<a name="l1039"><span class="ln">1039 </span></a>        } <span class="s5">else </span>{
<a name="l1040"><span class="ln">1040 </span></a>            mac5 = $(<span class="s7">&quot;#macdz_id&gt;.mac5&quot;</span>).val() + <span class="s7">'-'</span>;
<a name="l1041"><span class="ln">1041 </span></a>        }
<a name="l1042"><span class="ln">1042 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#macdz_id&gt;.mac6&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1043"><span class="ln">1043 </span></a>            mac6 = <span class="s7">''</span>;
<a name="l1044"><span class="ln">1044 </span></a>        } <span class="s5">else </span>{
<a name="l1045"><span class="ln">1045 </span></a>            mac6 = $(<span class="s7">&quot;#macdz_id&gt;.mac6&quot;</span>).val();
<a name="l1046"><span class="ln">1046 </span></a>        }
<a name="l1047"><span class="ln">1047 </span></a>        <span class="s5">var </span>macc = mac1 + mac2 + mac3 + mac4 + mac5 + mac6;
<a name="l1048"><span class="ln">1048 </span></a>        $(<span class="s7">&quot;#mac&quot;</span>).val(macc);
<a name="l1049"><span class="ln">1049 </span></a>    }
<a name="l1050"><span class="ln">1050 </span></a>
<a name="l1051"><span class="ln">1051 </span></a>    <span class="s9">/**</span>
<a name="l1052"><span class="ln">1052 </span></a>     * ip发生变化时调用即可
<a name="l1053"><span class="ln">1053 </span></a>     * 同Mac一样
<a name="l1054"><span class="ln">1054 </span></a>     * */
<a name="l1055"><span class="ln">1055 </span></a>    <span class="s5">function </span>ipp() {
<a name="l1056"><span class="ln">1056 </span></a>        <span class="s5">var </span>ip1, ip2, ip3, ip4;
<a name="l1057"><span class="ln">1057 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#ipdz_id&gt;.ip1&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1058"><span class="ln">1058 </span></a>            ip1 = <span class="s7">''</span>;
<a name="l1059"><span class="ln">1059 </span></a>        } <span class="s5">else </span>{
<a name="l1060"><span class="ln">1060 </span></a>            ip1 = $(<span class="s7">&quot;#ipdz_id&gt;.ip1&quot;</span>).val() + <span class="s7">'.'</span>;
<a name="l1061"><span class="ln">1061 </span></a>        }
<a name="l1062"><span class="ln">1062 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#ipdz_id&gt;.ip2&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1063"><span class="ln">1063 </span></a>            ip2 = <span class="s7">''</span>;
<a name="l1064"><span class="ln">1064 </span></a>        } <span class="s5">else </span>{
<a name="l1065"><span class="ln">1065 </span></a>            ip2 = $(<span class="s7">&quot;#ipdz_id&gt;.ip2&quot;</span>).val() + <span class="s7">'.'</span>;
<a name="l1066"><span class="ln">1066 </span></a>        }
<a name="l1067"><span class="ln">1067 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#ipdz_id&gt;.ip3&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1068"><span class="ln">1068 </span></a>            ip3 = <span class="s7">''</span>;
<a name="l1069"><span class="ln">1069 </span></a>        } <span class="s5">else </span>{
<a name="l1070"><span class="ln">1070 </span></a>            ip3 = $(<span class="s7">&quot;#ipdz_id&gt;.ip3&quot;</span>).val() + <span class="s7">'.'</span>;
<a name="l1071"><span class="ln">1071 </span></a>        }
<a name="l1072"><span class="ln">1072 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#ipdz_id&gt;.ip4&quot;</span>).val() == <span class="s7">''</span>) {
<a name="l1073"><span class="ln">1073 </span></a>            ip4 = <span class="s7">''</span>;
<a name="l1074"><span class="ln">1074 </span></a>        } <span class="s5">else </span>{
<a name="l1075"><span class="ln">1075 </span></a>            ip4 = $(<span class="s7">&quot;#ipdz_id&gt;.ip4&quot;</span>).val();
<a name="l1076"><span class="ln">1076 </span></a>        }
<a name="l1077"><span class="ln">1077 </span></a>        <span class="s5">var </span>ipp = ip1 + ip2 + ip3 + ip4;
<a name="l1078"><span class="ln">1078 </span></a>        $(<span class="s7">&quot;#ip&quot;</span>).val(ipp);
<a name="l1079"><span class="ln">1079 </span></a>    }
<a name="l1080"><span class="ln">1080 </span></a>
<a name="l1081"><span class="ln">1081 </span></a>    <span class="s9">/**</span>
<a name="l1082"><span class="ln">1082 </span></a>     * mac地址格式
<a name="l1083"><span class="ln">1083 </span></a>     * 键盘按方向键上下左右，光标在四个input中来回切换
<a name="l1084"><span class="ln">1084 </span></a>     */
<a name="l1085"><span class="ln">1085 </span></a>    $(<span class="s7">'#macdz_id&gt;input'</span>).each(<span class="s5">function </span>(i, o) {
<a name="l1086"><span class="ln">1086 </span></a>        $(<span class="s5">this</span>).attr(<span class="s7">'cust_index'</span>, i);
<a name="l1087"><span class="ln">1087 </span></a>    })
<a name="l1088"><span class="ln">1088 </span></a>
<a name="l1089"><span class="ln">1089 </span></a>    $(<span class="s7">'#macdz_update&gt;input'</span>).each(<span class="s5">function </span>(i, o) {
<a name="l1090"><span class="ln">1090 </span></a>        $(<span class="s5">this</span>).attr(<span class="s7">'cust_index'</span>, i);
<a name="l1091"><span class="ln">1091 </span></a>    })
<a name="l1092"><span class="ln">1092 </span></a>
<a name="l1093"><span class="ln">1093 </span></a>    $(<span class="s7">'#macdz_id&gt;input'</span>).keydown(<span class="s5">function </span>(event) {
<a name="l1094"><span class="ln">1094 </span></a>        <span class="s5">var </span>keycode = event.which;
<a name="l1095"><span class="ln">1095 </span></a>        <span class="s9">//从最后一个小格开始删除，删完之后直接跳到前一个小格中继续删除</span>
<a name="l1096"><span class="ln">1096 </span></a>        <span class="s5">if </span>(event.keyCode == <span class="s8">8 </span>&amp;&amp; $(<span class="s5">this</span>).val().length == <span class="s8">0</span>) {
<a name="l1097"><span class="ln">1097 </span></a>            $(<span class="s5">this</span>).prev().focus();
<a name="l1098"><span class="ln">1098 </span></a>        }
<a name="l1099"><span class="ln">1099 </span></a>        <span class="s5">if </span>(<span class="s8">38 </span>!= keycode &amp;&amp; <span class="s8">40 </span>!= keycode &amp;&amp; <span class="s8">37 </span>!= keycode &amp;&amp; <span class="s8">39 </span>!= keycode) {
<a name="l1100"><span class="ln">1100 </span></a>            <span class="s5">return</span>;
<a name="l1101"><span class="ln">1101 </span></a>        }
<a name="l1102"><span class="ln">1102 </span></a>        <span class="s5">var </span>ti = $(<span class="s5">this</span>).attr(<span class="s7">'cust_index'</span>);
<a name="l1103"><span class="ln">1103 </span></a>        <span class="s5">if </span>(<span class="s8">39 </span>== keycode || <span class="s8">40 </span>== keycode) {
<a name="l1104"><span class="ln">1104 </span></a>            <span class="s9">//down</span>
<a name="l1105"><span class="ln">1105 </span></a>            ti++;
<a name="l1106"><span class="ln">1106 </span></a>        } <span class="s5">else </span>{
<a name="l1107"><span class="ln">1107 </span></a>            <span class="s9">//up</span>
<a name="l1108"><span class="ln">1108 </span></a>            ti--;
<a name="l1109"><span class="ln">1109 </span></a>        }
<a name="l1110"><span class="ln">1110 </span></a>        <span class="s5">if </span>(ti &lt; <span class="s8">0</span>) {
<a name="l1111"><span class="ln">1111 </span></a>            ti = <span class="s8">0</span>;
<a name="l1112"><span class="ln">1112 </span></a>        }
<a name="l1113"><span class="ln">1113 </span></a>        <span class="s5">var </span>next_obj = $(<span class="s7">'#macdz_id&gt;input[cust_index=' </span>+ ti + <span class="s7">']'</span>);
<a name="l1114"><span class="ln">1114 </span></a>        <span class="s5">if </span>(next_obj) {
<a name="l1115"><span class="ln">1115 </span></a>            next_obj.focus();
<a name="l1116"><span class="ln">1116 </span></a>        }
<a name="l1117"><span class="ln">1117 </span></a>    })
<a name="l1118"><span class="ln">1118 </span></a>
<a name="l1119"><span class="ln">1119 </span></a>    <span class="s9">/**</span>
<a name="l1120"><span class="ln">1120 </span></a>     * 限制mac输入，以及跳下一格的条件
<a name="l1121"><span class="ln">1121 </span></a>     * */
<a name="l1122"><span class="ln">1122 </span></a>    $(<span class="s7">'#macdz_id&gt;input'</span>).bind(<span class="s7">'input propertychange'</span>, <span class="s5">function </span>() {
<a name="l1123"><span class="ln">1123 </span></a>        <span class="s9">//限制mac只能输入数字母</span>
<a name="l1124"><span class="ln">1124 </span></a>        <span class="s5">var </span>c = $(<span class="s5">this</span>);
<a name="l1125"><span class="ln">1125 </span></a>        <span class="s9">//截取输入的最后一个字符</span>
<a name="l1126"><span class="ln">1126 </span></a>        <span class="s5">var </span>lastStr = c.val().substr(c.val().trim().length - <span class="s8">1</span>, <span class="s8">1</span>);
<a name="l1127"><span class="ln">1127 </span></a>        <span class="s5">if </span>(<span class="s8">/[^\w]/</span>.test(c.val())) {
<a name="l1128"><span class="ln">1128 </span></a>            <span class="s9">//替换非字母和数字字符，当输入不是字母或数字的时候用空替换</span>
<a name="l1129"><span class="ln">1129 </span></a>            <span class="s5">var </span>temp_amount = c.val().replace(<span class="s8">/[^\w]/g</span>, <span class="s7">''</span>);
<a name="l1130"><span class="ln">1130 </span></a>            $(<span class="s5">this</span>).val(temp_amount);
<a name="l1131"><span class="ln">1131 </span></a>            <span class="s9">// 当前小格输入的最后一个字符是.并且长度不等于空</span>
<a name="l1132"><span class="ln">1132 </span></a>            <span class="s5">if </span>(<span class="s8">/[-]/</span>.test(lastStr) &amp;&amp; $(<span class="s5">this</span>).val() != <span class="s7">''</span>) {
<a name="l1133"><span class="ln">1133 </span></a>                $(<span class="s5">this</span>).next().focus();
<a name="l1134"><span class="ln">1134 </span></a>            }
<a name="l1135"><span class="ln">1135 </span></a>        }
<a name="l1136"><span class="ln">1136 </span></a>        <span class="s9">//当前小格输入长度为2时自动跳到下一格</span>
<a name="l1137"><span class="ln">1137 </span></a>        <span class="s5">if </span>($(<span class="s5">this</span>).val().trim().length == <span class="s8">2</span>) {
<a name="l1138"><span class="ln">1138 </span></a>            $(<span class="s5">this</span>).next().focus();
<a name="l1139"><span class="ln">1139 </span></a>        }
<a name="l1140"><span class="ln">1140 </span></a>    })
<a name="l1141"><span class="ln">1141 </span></a>
<a name="l1142"><span class="ln">1142 </span></a>    $(<span class="s7">'#macdz_id&gt;input'</span>).bind(<span class="s7">'blur'</span>, <span class="s5">function </span>() {
<a name="l1143"><span class="ln">1143 </span></a>        <span class="s5">if </span>($(<span class="s5">this</span>).val().trim().length &lt; <span class="s8">2</span>) {
<a name="l1144"><span class="ln">1144 </span></a>            $(<span class="s5">this</span>).focus();
<a name="l1145"><span class="ln">1145 </span></a>            <span class="s5">return false</span>;
<a name="l1146"><span class="ln">1146 </span></a>        }
<a name="l1147"><span class="ln">1147 </span></a>        macc();
<a name="l1148"><span class="ln">1148 </span></a>    })
<a name="l1149"><span class="ln">1149 </span></a>
<a name="l1150"><span class="ln">1150 </span></a>    $(<span class="s7">'#macdz_id&gt;.mac6'</span>).bind(<span class="s7">'blur'</span>, <span class="s5">function </span>() {
<a name="l1151"><span class="ln">1151 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#macdz_id&gt;.mac6&quot;</span>).val().trim().length &lt; <span class="s8">2</span>) {
<a name="l1152"><span class="ln">1152 </span></a>            $(<span class="s7">&quot;#macdz_id&gt;.mac6&quot;</span>).focus();
<a name="l1153"><span class="ln">1153 </span></a>            <span class="s5">return false</span>;
<a name="l1154"><span class="ln">1154 </span></a>        }
<a name="l1155"><span class="ln">1155 </span></a>        macc();
<a name="l1156"><span class="ln">1156 </span></a>    })
<a name="l1157"><span class="ln">1157 </span></a>
<a name="l1158"><span class="ln">1158 </span></a>    <span class="s9">/**</span>
<a name="l1159"><span class="ln">1159 </span></a>     * 限制ip输入，以及跳下一格的条件
<a name="l1160"><span class="ln">1160 </span></a>     * */
<a name="l1161"><span class="ln">1161 </span></a>    $(<span class="s7">'#ipdz_id&gt;input'</span>).bind(<span class="s7">'input propertychange'</span>, <span class="s5">function </span>() {
<a name="l1162"><span class="ln">1162 </span></a>        <span class="s9">// 输入不是数字的时候清空</span>
<a name="l1163"><span class="ln">1163 </span></a>        <span class="s5">var </span>c = $(<span class="s5">this</span>);
<a name="l1164"><span class="ln">1164 </span></a>        <span class="s9">//截取输入的最后一个字符</span>
<a name="l1165"><span class="ln">1165 </span></a>        <span class="s5">var </span>lastStr = c.val().substr(c.val().trim().length - <span class="s8">1</span>, <span class="s8">1</span>);
<a name="l1166"><span class="ln">1166 </span></a>        <span class="s5">if </span>(<span class="s8">/[^\d]/</span>.test(c.val())) {
<a name="l1167"><span class="ln">1167 </span></a>            <span class="s9">//替换非数字字符</span>
<a name="l1168"><span class="ln">1168 </span></a>            <span class="s5">var </span>temp_amount = c.val().replace(<span class="s8">/[^\d]/g</span>, <span class="s7">''</span>);
<a name="l1169"><span class="ln">1169 </span></a>            $(<span class="s5">this</span>).val(temp_amount);
<a name="l1170"><span class="ln">1170 </span></a>            <span class="s9">// 当前小格输入的最后一个字符是.并且长度不等于空</span>
<a name="l1171"><span class="ln">1171 </span></a>            <span class="s5">if </span>(<span class="s8">/[.]/</span>.test(lastStr) &amp;&amp; $(<span class="s5">this</span>).val() != <span class="s7">''</span>) {
<a name="l1172"><span class="ln">1172 </span></a>                $(<span class="s5">this</span>).next().focus();
<a name="l1173"><span class="ln">1173 </span></a>            }
<a name="l1174"><span class="ln">1174 </span></a>        }
<a name="l1175"><span class="ln">1175 </span></a>        <span class="s9">// 第二，三，四位输入不在0-255之间的时候清空</span>
<a name="l1176"><span class="ln">1176 </span></a>        <span class="s5">if </span>($(<span class="s5">this</span>).val() &lt; <span class="s8">0 </span>|| $(<span class="s5">this</span>).val() &gt; <span class="s8">255</span>) {
<a name="l1177"><span class="ln">1177 </span></a>            $(<span class="s5">this</span>).val(<span class="s7">''</span>);
<a name="l1178"><span class="ln">1178 </span></a>        }
<a name="l1179"><span class="ln">1179 </span></a>        <span class="s9">//第一位输入不在1-223之间的时候清空</span>
<a name="l1180"><span class="ln">1180 </span></a>        <span class="s5">if </span>($(<span class="s7">&quot;#ipdz_id&gt;.ip1&quot;</span>).val() &lt; <span class="s8">1 </span>|| $(<span class="s7">&quot;#ipdz_id&gt;.ip1&quot;</span>).val() &gt; <span class="s8">223</span>) {
<a name="l1181"><span class="ln">1181 </span></a>            $(<span class="s7">&quot;#ipdz_id&gt;.ip1&quot;</span>).val(<span class="s7">''</span>);
<a name="l1182"><span class="ln">1182 </span></a>        }
<a name="l1183"><span class="ln">1183 </span></a>        <span class="s9">//当每一小格输入的长度等于3时，自动跳到下一个</span>
<a name="l1184"><span class="ln">1184 </span></a>        <span class="s5">if </span>($(<span class="s5">this</span>).val().trim().length == <span class="s8">3</span>) {
<a name="l1185"><span class="ln">1185 </span></a>            $(<span class="s5">this</span>).next().focus();
<a name="l1186"><span class="ln">1186 </span></a>        }
<a name="l1187"><span class="ln">1187 </span></a>        ipp();
<a name="l1188"><span class="ln">1188 </span></a>    })
<a name="l1189"><span class="ln">1189 </span></a>
<a name="l1190"><span class="ln">1190 </span></a>    <span class="s9">/**</span>
<a name="l1191"><span class="ln">1191 </span></a>     * ip地址格式
<a name="l1192"><span class="ln">1192 </span></a>     * 键盘按方向键上下左右，光标在四个input中来回切换
<a name="l1193"><span class="ln">1193 </span></a>     */
<a name="l1194"><span class="ln">1194 </span></a>    $(<span class="s7">'#ipdz_id&gt;input'</span>).each(<span class="s5">function </span>(i, o) {
<a name="l1195"><span class="ln">1195 </span></a>        $(<span class="s5">this</span>).attr(<span class="s7">'cust_index'</span>, i);
<a name="l1196"><span class="ln">1196 </span></a>    })
<a name="l1197"><span class="ln">1197 </span></a>
<a name="l1198"><span class="ln">1198 </span></a>    $(<span class="s7">'#ipdz_update&gt;input'</span>).each(<span class="s5">function </span>(i, o) {
<a name="l1199"><span class="ln">1199 </span></a>        $(<span class="s5">this</span>).attr(<span class="s7">'cust_index'</span>, i);
<a name="l1200"><span class="ln">1200 </span></a>    })
<a name="l1201"><span class="ln">1201 </span></a>
<a name="l1202"><span class="ln">1202 </span></a>    $(<span class="s7">'#ipdz_id&gt;input'</span>).keydown(<span class="s5">function </span>(event) {
<a name="l1203"><span class="ln">1203 </span></a>        <span class="s5">var </span>keycode = event.which;
<a name="l1204"><span class="ln">1204 </span></a>        <span class="s9">//从最后一个小格开始删除，删完之后直接跳到前一个小格中继续删除</span>
<a name="l1205"><span class="ln">1205 </span></a>        <span class="s5">if </span>(event.keyCode == <span class="s8">8 </span>&amp;&amp; $(<span class="s5">this</span>).val().length == <span class="s8">0</span>) {
<a name="l1206"><span class="ln">1206 </span></a>            $(<span class="s5">this</span>).prev().focus();
<a name="l1207"><span class="ln">1207 </span></a>        }
<a name="l1208"><span class="ln">1208 </span></a>        <span class="s5">if </span>(<span class="s8">38 </span>!= keycode &amp;&amp; <span class="s8">40 </span>!= keycode &amp;&amp; <span class="s8">37 </span>!= keycode &amp;&amp; <span class="s8">39 </span>!= keycode) {
<a name="l1209"><span class="ln">1209 </span></a>            <span class="s5">return</span>;
<a name="l1210"><span class="ln">1210 </span></a>        }
<a name="l1211"><span class="ln">1211 </span></a>        <span class="s5">var </span>ti = $(<span class="s5">this</span>).attr(<span class="s7">'cust_index'</span>);
<a name="l1212"><span class="ln">1212 </span></a>        <span class="s5">if </span>(<span class="s8">39 </span>== keycode || <span class="s8">40 </span>== keycode) {
<a name="l1213"><span class="ln">1213 </span></a>            <span class="s9">//down</span>
<a name="l1214"><span class="ln">1214 </span></a>            ti++;
<a name="l1215"><span class="ln">1215 </span></a>        } <span class="s5">else </span>{
<a name="l1216"><span class="ln">1216 </span></a>            <span class="s9">//up</span>
<a name="l1217"><span class="ln">1217 </span></a>            ti--;
<a name="l1218"><span class="ln">1218 </span></a>        }
<a name="l1219"><span class="ln">1219 </span></a>        <span class="s5">if </span>(ti &lt; <span class="s8">0</span>) {
<a name="l1220"><span class="ln">1220 </span></a>            ti = <span class="s8">0</span>;
<a name="l1221"><span class="ln">1221 </span></a>        }
<a name="l1222"><span class="ln">1222 </span></a>        <span class="s5">var </span>next_obj = $(<span class="s7">'#ipdz_id&gt;input[cust_index=' </span>+ ti + <span class="s7">']'</span>);
<a name="l1223"><span class="ln">1223 </span></a>        <span class="s5">if </span>(next_obj) {
<a name="l1224"><span class="ln">1224 </span></a>            next_obj.focus();
<a name="l1225"><span class="ln">1225 </span></a>        }
<a name="l1226"><span class="ln">1226 </span></a>    })
<a name="l1227"><span class="ln">1227 </span></a>
<a name="l1228"><span class="ln">1228 </span></a>
<a name="l1229"><span class="ln">1229 </span></a>    <span class="s5">function </span>sbbhchange() {
<a name="l1230"><span class="ln">1230 </span></a>        <span class="s5">var </span>sel = document.getElementById(<span class="s7">&quot;sbbh_sel&quot;</span>)
<a name="l1231"><span class="ln">1231 </span></a>        <span class="s5">var </span>sbmc_sel_xg = $(<span class="s7">&quot;#sbbh_sel option:selected&quot;</span>).text();
<a name="l1232"><span class="ln">1232 </span></a>        <span class="s5">var </span>sbmc_sel_val = $(<span class="s7">&quot;#sbbh_sel option:selected&quot;</span>).val();
<a name="l1233"><span class="ln">1233 </span></a>        <span class="s5">var </span>sbmc_sel_index = sel.selectedIndex + <span class="s8">1</span>
<a name="l1234"><span class="ln">1234 </span></a>        $(<span class="s7">'#ypdx_btn_1'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l1235"><span class="ln">1235 </span></a>        $(<span class="s7">'#ypdx_btn_2'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l1236"><span class="ln">1236 </span></a>        $(<span class="s7">'#ypdx_btn_3'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l1237"><span class="ln">1237 </span></a>        $(<span class="s7">'#xsqcc_btn'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l1238"><span class="ln">1238 </span></a>        $(<span class="s7">'#creat_sbbh_btn'</span>).removeAttr(<span class="s7">&quot;disabled&quot;</span>).bind(<span class="s7">&quot;click&quot;</span>, sbbhsc)
<a name="l1239"><span class="ln">1239 </span></a>        <span class="s9">// sbmc_index</span>
<a name="l1240"><span class="ln">1240 </span></a>        // var sbmc_sel_xinz = $(&quot;#sbbh_sel option:selected&quot;).val();
<a name="l1241"><span class="ln">1241 </span></a>
<a name="l1242"><span class="ln">1242 </span></a>        $.confirm({
<a name="l1243"><span class="ln">1243 </span></a>            title: <span class="s7">'提示!'</span>,
<a name="l1244"><span class="ln">1244 </span></a>            content: <span class="s7">'您确定修改设备类型吗？确定请按确定(同时你添加的设备不是电脑或服务器，背景颜色是灰色的不用填写)，否则按取消'</span>,
<a name="l1245"><span class="ln">1245 </span></a>            buttons: {
<a name="l1246"><span class="ln">1246 </span></a>                confirm: {
<a name="l1247"><span class="ln">1247 </span></a>                    text: <span class="s7">'确定'</span>,
<a name="l1248"><span class="ln">1248 </span></a>                    btnClass: <span class="s7">'btn-blue'</span>,
<a name="l1249"><span class="ln">1249 </span></a>                    action: <span class="s5">function </span>() {
<a name="l1250"><span class="ln">1250 </span></a>                        $(<span class="s7">&quot;#ypdx_id_1&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l1251"><span class="ln">1251 </span></a>                        $(<span class="s7">&quot;#ypdx_id_2&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l1252"><span class="ln">1252 </span></a>                        $(<span class="s7">&quot;#ypdx_id_3&quot;</span>).val(<span class="s7">&quot;&quot;</span>);
<a name="l1253"><span class="ln">1253 </span></a>                        $(<span class="s7">&quot;#sbbh_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1254"><span class="ln">1254 </span></a>                        $(<span class="s7">&quot;#sbmc_id&quot;</span>).val(sbmc_sel_xg)
<a name="l1255"><span class="ln">1255 </span></a>                        $(<span class="s7">&quot;#sbmc_option&quot;</span>).val(sbmc_sel_val)
<a name="l1256"><span class="ln">1256 </span></a>                        $(<span class="s7">&quot;#sbmc_index&quot;</span>).val(sbmc_sel_index)
<a name="l1257"><span class="ln">1257 </span></a>                        $(<span class="s7">&quot;#guige_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1258"><span class="ln">1258 </span></a>                        $(<span class="s7">&quot;#shccj_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1259"><span class="ln">1259 </span></a>                        $(<span class="s7">&quot;#gmrq_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1260"><span class="ln">1260 </span></a>                        $(<span class="s7">&quot;#bmid_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1261"><span class="ln">1261 </span></a>                        $(<span class="s7">&quot;#shiyr_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1262"><span class="ln">1262 </span></a>                        $(<span class="s7">'#zbxh_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1263"><span class="ln">1263 </span></a>                        $(<span class="s7">'#cpuxh_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1264"><span class="ln">1264 </span></a>                        $(<span class="s7">'#ncggdx_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1265"><span class="ln">1265 </span></a>                        $(<span class="s7">'#xkxh_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1266"><span class="ln">1266 </span></a>                        $(<span class="s7">'#ypdx_id_1'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1267"><span class="ln">1267 </span></a>                        $(<span class="s7">'#ypdx_id_2'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1268"><span class="ln">1268 </span></a>                        $(<span class="s7">'#ypdx_id_3'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1269"><span class="ln">1269 </span></a>                        $(<span class="s7">'#xsqppcc_id'</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1270"><span class="ln">1270 </span></a>                        $(<span class="s7">&quot;#macdz_id&gt;.mac1&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1271"><span class="ln">1271 </span></a>                        $(<span class="s7">&quot;#macdz_id&gt;.mac2&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1272"><span class="ln">1272 </span></a>                        $(<span class="s7">&quot;#macdz_id&gt;.mac3&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1273"><span class="ln">1273 </span></a>                        $(<span class="s7">&quot;#macdz_id&gt;.mac4&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1274"><span class="ln">1274 </span></a>                        $(<span class="s7">&quot;#macdz_id&gt;.mac5&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1275"><span class="ln">1275 </span></a>                        $(<span class="s7">&quot;#macdz_id&gt;.mac6&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1276"><span class="ln">1276 </span></a>                        $(<span class="s7">&quot;#beiz_id&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1277"><span class="ln">1277 </span></a>                        $(<span class="s7">&quot;#ipdz_id&gt;.ip1&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1278"><span class="ln">1278 </span></a>                        $(<span class="s7">&quot;#ipdz_id&gt;.ip2&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1279"><span class="ln">1279 </span></a>                        $(<span class="s7">&quot;#ipdz_id&gt;.ip3&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1280"><span class="ln">1280 </span></a>                        $(<span class="s7">&quot;#ipdz_id&gt;.ip4&quot;</span>).val(<span class="s7">&quot;&quot;</span>)
<a name="l1281"><span class="ln">1281 </span></a>                        <span class="s5">if </span>(sbmc_sel_xg.indexOf(<span class="s7">&quot;电脑&quot;</span>) &lt; <span class="s8">0 </span>&amp;&amp; sbmc_sel_xg.indexOf(<span class="s7">&quot;务器&quot;</span>) &lt; <span class="s8">0</span>) {
<a name="l1282"><span class="ln">1282 </span></a>                            $(<span class="s7">&quot;#zbxh_id&quot;</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1283"><span class="ln">1283 </span></a>                            $(<span class="s7">&quot;#cpuxh_id&quot;</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1284"><span class="ln">1284 </span></a>                            $(<span class="s7">&quot;#ncggdx_id&quot;</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1285"><span class="ln">1285 </span></a>                            $(<span class="s7">&quot;#xkxh_id&quot;</span>).attr(<span class="s7">&quot;readonly&quot;</span>, <span class="s7">&quot;readonly&quot;</span>)
<a name="l1286"><span class="ln">1286 </span></a>                            $(<span class="s7">&quot;#xsqppcc_id&quot;</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1287"><span class="ln">1287 </span></a>                            $(<span class="s7">'#ipdz1'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1288"><span class="ln">1288 </span></a>                            $(<span class="s7">'#ipdz2'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1289"><span class="ln">1289 </span></a>                            $(<span class="s7">'#ipdz3'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1290"><span class="ln">1290 </span></a>                            $(<span class="s7">'#ipdz4'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1291"><span class="ln">1291 </span></a>                            $(<span class="s7">'.mac1'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1292"><span class="ln">1292 </span></a>                            $(<span class="s7">'.mac2'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1293"><span class="ln">1293 </span></a>                            $(<span class="s7">'.mac3'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1294"><span class="ln">1294 </span></a>                            $(<span class="s7">'.mac4'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1295"><span class="ln">1295 </span></a>                            $(<span class="s7">'.mac5'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1296"><span class="ln">1296 </span></a>                            $(<span class="s7">'.mac6'</span>).attr(<span class="s7">&quot;readOnly&quot;</span>, <span class="s7">&quot;readOnly&quot;</span>)
<a name="l1297"><span class="ln">1297 </span></a>                            document.getElementById(<span class="s7">'xsqppcc_id'</span>).style.backgroundColor = <span class="s7">&quot;#eeeeee&quot;</span>
<a name="l1298"><span class="ln">1298 </span></a>                            document.getElementById(<span class="s7">'ypdx_id_1'</span>).style.backgroundColor = <span class="s7">&quot;#eeeeee&quot;</span>
<a name="l1299"><span class="ln">1299 </span></a>                            document.getElementById(<span class="s7">'ypdx_id_2'</span>).style.backgroundColor = <span class="s7">&quot;#eeeeee&quot;</span>
<a name="l1300"><span class="ln">1300 </span></a>                            document.getElementById(<span class="s7">'ypdx_id_3'</span>).style.backgroundColor = <span class="s7">&quot;#eeeeee&quot;</span>
<a name="l1301"><span class="ln">1301 </span></a>                            $(<span class="s7">'#ypdx_btn_1'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l1302"><span class="ln">1302 </span></a>                            $(<span class="s7">'#ypdx_btn_2'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l1303"><span class="ln">1303 </span></a>                            $(<span class="s7">'#ypdx_btn_3'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l1304"><span class="ln">1304 </span></a>                            $(<span class="s7">'#xsqcc_btn'</span>).attr(<span class="s7">&quot;disabled&quot;</span>, <span class="s7">&quot;disabled&quot;</span>).unbind(<span class="s7">&quot;click&quot;</span>)
<a name="l1305"><span class="ln">1305 </span></a>                            $(<span class="s7">'#creat_sbbh_btn'</span>).removeAttr(<span class="s7">&quot;disabled&quot;</span>).bind(<span class="s7">&quot;click&quot;</span>, sbbhsc)
<a name="l1306"><span class="ln">1306 </span></a>                        } <span class="s5">else </span>{
<a name="l1307"><span class="ln">1307 </span></a>                            $(<span class="s7">&quot;#zbxh_id&quot;</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1308"><span class="ln">1308 </span></a>                            $(<span class="s7">&quot;#cpuxh_id&quot;</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1309"><span class="ln">1309 </span></a>                            $(<span class="s7">&quot;#ncggdx_id&quot;</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1310"><span class="ln">1310 </span></a>                            $(<span class="s7">&quot;#xkxh_id&quot;</span>).removeAttr(<span class="s7">&quot;readonly&quot;</span>)
<a name="l1311"><span class="ln">1311 </span></a>                            $(<span class="s7">'#ipdz1'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1312"><span class="ln">1312 </span></a>                            $(<span class="s7">'#ipdz2'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1313"><span class="ln">1313 </span></a>                            $(<span class="s7">'#ipdz3'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1314"><span class="ln">1314 </span></a>                            $(<span class="s7">'#ipdz4'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1315"><span class="ln">1315 </span></a>                            $(<span class="s7">'.mac1'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1316"><span class="ln">1316 </span></a>                            $(<span class="s7">'.mac2'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1317"><span class="ln">1317 </span></a>                            $(<span class="s7">'.mac3'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1318"><span class="ln">1318 </span></a>                            $(<span class="s7">'.mac4'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1319"><span class="ln">1319 </span></a>                            $(<span class="s7">'.mac5'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1320"><span class="ln">1320 </span></a>                            $(<span class="s7">'.mac6'</span>).removeAttr(<span class="s7">&quot;readOnly&quot;</span>)
<a name="l1321"><span class="ln">1321 </span></a>                            document.getElementById(<span class="s7">'ypdx_id_1'</span>).style.backgroundColor = <span class="s7">&quot;#ffffff&quot;</span>
<a name="l1322"><span class="ln">1322 </span></a>                            document.getElementById(<span class="s7">'ypdx_id_2'</span>).style.backgroundColor = <span class="s7">&quot;#ffffff&quot;</span>
<a name="l1323"><span class="ln">1323 </span></a>                            document.getElementById(<span class="s7">'ypdx_id_3'</span>).style.backgroundColor = <span class="s7">&quot;#ffffff&quot;</span>
<a name="l1324"><span class="ln">1324 </span></a>                            document.getElementById(<span class="s7">'xsqppcc_id'</span>).style.backgroundColor = <span class="s7">&quot;#ffffff&quot;</span>
<a name="l1325"><span class="ln">1325 </span></a>                            $(<span class="s7">'#ypdx_btn_1'</span>).removeAttr(<span class="s7">&quot;disabled&quot;</span>).bind(<span class="s7">&quot;click&quot;</span>, ypdx_1)
<a name="l1326"><span class="ln">1326 </span></a>                            $(<span class="s7">'#ypdx_btn_2'</span>).removeAttr(<span class="s7">&quot;disabled&quot;</span>).bind(<span class="s7">&quot;click&quot;</span>, ypdx_2)
<a name="l1327"><span class="ln">1327 </span></a>                            $(<span class="s7">'#ypdx_btn_3'</span>).removeAttr(<span class="s7">&quot;disabled&quot;</span>).bind(<span class="s7">&quot;click&quot;</span>, ypdx_3)
<a name="l1328"><span class="ln">1328 </span></a>                            $(<span class="s7">'#xsqcc_btn'</span>).removeAttr(<span class="s7">&quot;disabled&quot;</span>).bind(<span class="s7">&quot;click&quot;</span>, xsqxx)
<a name="l1329"><span class="ln">1329 </span></a>                            $(<span class="s7">'#creat_sbbh_btn'</span>).removeAttr(<span class="s7">&quot;disabled&quot;</span>).bind(<span class="s7">&quot;click&quot;</span>, sbbhsc)
<a name="l1330"><span class="ln">1330 </span></a>                        }
<a name="l1331"><span class="ln">1331 </span></a>                    }
<a name="l1332"><span class="ln">1332 </span></a>                },
<a name="l1333"><span class="ln">1333 </span></a>                cancel: {
<a name="l1334"><span class="ln">1334 </span></a>                    text: <span class="s7">'取消'</span>,
<a name="l1335"><span class="ln">1335 </span></a>                    btnClass: <span class="s7">'btn-red'</span>,
<a name="l1336"><span class="ln">1336 </span></a>                    action: <span class="s5">function </span>() {
<a name="l1337"><span class="ln">1337 </span></a>                        <span class="s5">var </span>sbmc_xin_option = $(<span class="s7">&quot;#sbmc_option&quot;</span>).val()
<a name="l1338"><span class="ln">1338 </span></a>                        sel.value = sbmc_xin_option;
<a name="l1339"><span class="ln">1339 </span></a>                    },
<a name="l1340"><span class="ln">1340 </span></a>                }
<a name="l1341"><span class="ln">1341 </span></a>            }
<a name="l1342"><span class="ln">1342 </span></a>        });
<a name="l1343"><span class="ln">1343 </span></a>    }
<a name="l1344"><span class="ln">1344 </span></a>&lt;/<span class="s3">script</span>&gt;
<a name="l1345"><span class="ln">1345 </span></a>&lt;/<span class="s3">body</span>&gt;
<a name="l1346"><span class="ln">1346 </span></a>&lt;/<span class="s3">html</span>&gt;</pre>
</body>
</html>